Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 27b4799

Browse files
author
Guillaume Chau
committed
types: typescript
1 parent ceee9b2 commit 27b4799

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

‎types/options.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export interface ComponentOptions<
8484
activated?(): void;
8585
deactivated?(): void;
8686
errorCaptured?(err: Error, vm: Vue, info: string): boolean | void;
87+
ssrPrefetch?(this: V): Promise<void>;
8788

8889
directives?: { [key: string]: DirectiveFunction | DirectiveOptions };
8990
components?: { [key: string]: Component<any, any, any, any> | AsyncComponent<any, any, any, any> };

‎types/test/options-test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ Vue.component('component', {
222222
info.toUpperCase()
223223
return true
224224
},
225+
ssrPrefetch () {
226+
return Promise.resolve()
227+
},
225228

226229
directives: {
227230
a: {

0 commit comments

Comments
 (0)