This commit is contained in:
Rizky 2024-02-13 12:43:09 +07:00
parent 0392922c68
commit c75ff5a02e
2 changed files with 4 additions and 1 deletions

View File

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

View File

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