Skip to content
Permalink
Browse files
fix(types): accept sync serverPrefetch() (#7000)
  • Loading branch information
antfu committed Feb 1, 2023
1 parent d7f63a1 commit 5f1883e
Showing 1 changed file with 1 addition and 1 deletion.
@@ -149,7 +149,7 @@ export interface ComponentOptionsBase<
emits?: (E | EE[]) & ThisType<void>
// TODO infer public instance type based on exposed keys
expose?: string[]
serverPrefetch?(): Promise<any>
serverPrefetch?(): void | Promise<any>

// Runtime compiler only -----------------------------------------------------
compilerOptions?: RuntimeCompilerOptions

0 comments on commit 5f1883e

Please sign in to comment.