Skip to content

Commit

Permalink
fix(types): accept sync serverPrefetch() (vuejs#7000)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu authored and IAmSSH committed Apr 29, 2023
1 parent 7e8eb37 commit 38661f0
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 38661f0

Please sign in to comment.