Skip to content
This repository has been archived by the owner on Jul 4, 2020. It is now read-only.

please add export interface liff #14

Open
mockingjet opened this issue Mar 23, 2020 · 3 comments
Open

please add export interface liff #14

mockingjet opened this issue Mar 23, 2020 · 3 comments

Comments

@mockingjet
Copy link

I need to use Vue.prototype.$liff in my Vue project
So I have to write declare interface Vue { $liff: liff }

@ReiiYuki
Copy link
Member

Do you have some example?

I'm not sure that if you use liff in the header, does it automatically inject liff into $liff?

@mockingjet
Copy link
Author

mockingjet commented Mar 26, 2020

//main.js
image

// xxx.d.ts
image

Need a liff instance interface here! ( just like AxiosInstance )

@ReiiYuki
Copy link
Member

I'm not sure why we need to inject liff into Vue, because we can globally access liff anywhere in our js, ts and vue code.

You can feel free to call liff.something anywhere in your project without error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants