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