mirror of https://github.com/vuejs/core.git
fix(types): accept sync `serverPrefetch()` (#7000)
This commit is contained in:
parent
d7f63a132a
commit
5f1883ec53
|
@ -149,7 +149,7 @@ export interface ComponentOptionsBase<
|
||||||
emits?: (E | EE[]) & ThisType<void>
|
emits?: (E | EE[]) & ThisType<void>
|
||||||
// TODO infer public instance type based on exposed keys
|
// TODO infer public instance type based on exposed keys
|
||||||
expose?: string[]
|
expose?: string[]
|
||||||
serverPrefetch?(): Promise<any>
|
serverPrefetch?(): void | Promise<any>
|
||||||
|
|
||||||
// Runtime compiler only -----------------------------------------------------
|
// Runtime compiler only -----------------------------------------------------
|
||||||
compilerOptions?: RuntimeCompilerOptions
|
compilerOptions?: RuntimeCompilerOptions
|
||||||
|
|
Loading…
Reference in New Issue