Skip to content

Commit f8ab023

Browse files
committed
📝 remove reference to mapLoadableActions onn README
1 parent 23d0a29 commit f8ab023

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ This module has an UMD bundle available through JSDelivr and Unpkg CDNs.
8383
8484
## Installation on Vue
8585
86-
`vue-loadable` need to be installed to enable loadable methods, `loadable` decorator and `mapLoadableActions` helper.
86+
`vue-loadable` need to be installed to enable loadable methods, `loadable` decorator and `mapLoadableMethods` helper.
8787
8888
To install globally, just pass default exported object as argment to `Vue.use`.
8989
@@ -166,18 +166,16 @@ export default {
166166
<br />
167167
168168
```ts
169-
type Method =
169+
type Method =
170170
| ((...args: any[]) => any)
171171
| ((this: Vue, ...args: any[]) => any);
172172
173173
type LoadableMethod<T extends Method> = (
174174
this: Vue,
175-
...args: Parameters<T>,
176-
) => (
177-
ReturnType<T> extends Promise<any>
178-
? ReturnType<T>
179-
: Promise<ReturnType<T>>
180-
);
175+
...args: Parameters<T>
176+
) => ReturnType<T> extends Promise<any>
177+
? ReturnType<T>
178+
: Promise<ReturnType<T>>;
181179
182180
const loadable: <T extends Method>(
183181
method: T,

0 commit comments

Comments
 (0)