fix(types): accept sync `serverPrefetch()` (#7000)

This commit is contained in:
Anthony Fu 2023-02-01 09:15:51 +01:00 committed by GitHub
parent d7f63a132a
commit 5f1883ec53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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