wip fix
This commit is contained in:
parent
0392922c68
commit
c75ff5a02e
|
|
@ -61,6 +61,9 @@ const console =
|
|||
typeof global.server_hook === "function"
|
||||
? { ...global.console }
|
||||
: global.console;
|
||||
|
||||
const db = {};
|
||||
const api = {};
|
||||
if (typeof global.server_hook === "function") {
|
||||
const log = global.console.log;
|
||||
console.log = function (...arg) {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ export const baseTypings = `
|
|||
const isLayout: boolean;
|
||||
const isMobile: boolean;
|
||||
const isDesktop: boolean;
|
||||
const preload: (urls: string[]) => ReactNode;
|
||||
const preload: (urls: string | string[]) => ReactNode;
|
||||
const apiHeaders: Record<string, any>;
|
||||
const navigate: (url: string) => void;
|
||||
const params: any;
|
||||
|
|
|
|||
Loading…
Reference in New Issue