Skip to content

Commit

Permalink
fix(types): accept sync serverPrefetch() (#7000)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Feb 1, 2023
1 parent d7f63a1 commit 5f1883e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/componentOptions.ts
Expand Up @@ -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
Expand Down

0 comments on commit 5f1883e

Please sign in to comment.