-
Notifications
You must be signed in to change notification settings - Fork 370
Fix InfiniteLoading Plugin in typescript #214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #214 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 5 5
Lines 173 173
Branches 32 32
=====================================
Hits 173 173Continue to review full report at Codecov.
|
|
Hi @fraparisi, thanks for your PR, but I have a question, the |
|
I'm not sure if I understand correctly but I see that is possible to use this component as a Plugin https://peachscript.github.io/vue-infinite-loading/guide/configure-plugin-opts.html#props-settings. |
|
Thanks for your explanation, sorry I didn't make it clear, my question is why we need to declare the |
|
Yes correct. |
|
That's great! But did you forgot to import |
|
yes, sorry. Imported now :) |
|
Hi, We are facing the same issue. Any plans to make a release for this fix? |
|
Hi @StevenDevooght , sorry for late, the v2.4.4 has been released, contains this change |
Without the install function typescript get an error like this:
Argument of type 'typeof InfiniteLoading' is not assignable to parameter of type 'PluginObject<{ props: { spinner: string; }; system: { throttleLimit: number; }; }> | PluginFunction<{ props: { spinner: string; }; system: { throttleLimit: number; }; }>'. Property 'install' is missing in type 'typeof InfiniteLoading' but required in type 'PluginObject<{ props: { spinner: string; }; system: { throttleLimit: number; }; }>'.