File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 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.
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
8888To 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 ,
You can’t perform that action at this time.
0 commit comments