oak-cli/lib/server/polyfill.d.ts

12 lines
410 B
TypeScript

export type GenerateIdOption = {
shuffle?: boolean;
};
export type LogFormatterProp = {
level: "info" | "warn" | "error";
caller: NodeJS.CallSite | null;
args: any[];
};
export type LogFormatter = (props: LogFormatterProp) => any[];
export declare const polyfillConsole: (id: string, trace: boolean, formatter?: LogFormatter) => void;
export declare const removePolyfill: (id: string) => void;