Skip to content

Commit

Permalink
📝 remove reference to mapLoadableActions onn README
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorLuizC committed Oct 17, 2019
1 parent 23d0a29 commit f8ab023
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -166,18 +166,16 @@ export default {
<br />
```ts
type Method =
type Method =
| ((...args: any[]) => any)
| ((this: Vue, ...args: any[]) => any);
type LoadableMethod<T extends Method> = (
this: Vue,
...args: Parameters<T>,
) => (
ReturnType<T> extends Promise<any>
? ReturnType<T>
: Promise<ReturnType<T>>
);
...args: Parameters<T>
) => ReturnType<T> extends Promise<any>
? ReturnType<T>
: Promise<ReturnType<T>>;
const loadable: <T extends Method>(
method: T,
Expand Down

0 comments on commit f8ab023

Please sign in to comment.