diff --git a/README.md b/README.md index f723602..8b787ad 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ This module has an UMD bundle available through JSDelivr and Unpkg CDNs. ## Installation on Vue -`vue-loadable` need to be installed to enable loadable methods, `loadable` decorator and `mapLoadableActions` helper. +`vue-loadable` need to be installed to enable loadable methods, `loadable` decorator and `mapLoadableMethods` helper. To install globally, just pass default exported object as argment to `Vue.use`. @@ -166,18 +166,16 @@ export default {
```ts - type Method = + type Method = | ((...args: any[]) => any) | ((this: Vue, ...args: any[]) => any); type LoadableMethod = ( this: Vue, - ...args: Parameters, - ) => ( - ReturnType extends Promise - ? ReturnType - : Promise> - ); + ...args: Parameters + ) => ReturnType extends Promise + ? ReturnType + : Promise>; const loadable: ( method: T,