File tree 1 file changed +6
-8
lines changed 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ This module has an UMD bundle available through JSDelivr and Unpkg CDNs.
83
83
84
84
## Installation on Vue
85
85
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.
87
87
88
88
To install globally, just pass default exported object as argment to `Vue.use`.
89
89
@@ -166,18 +166,16 @@ export default {
166
166
<br />
167
167
168
168
` ` ` ts
169
- type Method =
169
+ type Method =
170
170
| ((... args : any []) => any)
171
171
| ((this : Vue , ... args : any []) => any);
172
172
173
173
type LoadableMethod< T extends Method> = (
174
174
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 >> ;
181
179
182
180
const loadable: <T extends Method >(
183
181
method: T ,
You can’t perform that action at this time.
0 commit comments