f / vue-wait

Complex Loader and Progress Management for Vue/Vuex and Nuxt Applications
MIT License
2k stars 100 forks source link

Fix implicit any #64

Closed fraparisi closed 5 years ago

fraparisi commented 5 years ago

If typescript is configured for "noImplicitAny" the older types generate error in compilation.

fraparisi commented 5 years ago

@f now should be fine :)

yoyoys commented 5 years ago

I think waitFor can be a generic like this.

waitFor<T extends Function | AsyncFunction>(waiter, callback: T, forceSync?: false): T;
fraparisi commented 5 years ago

@yoyoys updated thanks.

brantwills commented 5 years ago

Ran into this myself today - many thanks for addressing and all the work put into vue-wait!

fraparisi commented 5 years ago

@f any news on this? Thanks in advance