diff --git a/src/core/server.ts b/src/core/server.ts index 2a4901a68..4d8bd90db 100644 --- a/src/core/server.ts +++ b/src/core/server.ts @@ -78,7 +78,7 @@ export function fetch(path: string, options?: RequestInit) { return _fetch(url(path), options) } -export const $fetch = (function(path: string, options?: FetchOptions) { +export const $fetch = (function (path: string, options?: FetchOptions) { return _$fetch(url(path), options) }) as typeof globalThis['$fetch']