Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Resolved conflicts by taking GitHub versions for: - .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml Kept deploy.sh updated to: - Pull from GitHub (primary source) - Push to Gitea (push-mirror) - Build from site/ directory (GitHub structure) Co-Authored-By: Paperclip <noreply@paperclip.ing>
39 lines
1.3 KiB
TypeScript
39 lines
1.3 KiB
TypeScript
export type LogMethod = 'log' | 'info' | 'debug' | 'table' | 'error' | 'assert' | 'dir' | 'dirxml' | 'group' | 'groupCollapsed' | 'groupEnd' | 'trace' | 'warn';
|
|
export type ConsoleEntry<T> = {
|
|
kind: 'console';
|
|
method: LogMethod;
|
|
consoleMethodStack: string | null;
|
|
args: Array<{
|
|
kind: 'arg';
|
|
data: T;
|
|
} | {
|
|
kind: 'formatted-error-arg';
|
|
prefix: string;
|
|
stack: string;
|
|
}>;
|
|
};
|
|
export type ConsoleErrorEntry<T> = {
|
|
kind: 'any-logged-error';
|
|
method: 'error';
|
|
consoleErrorStack: string;
|
|
args: Array<{
|
|
kind: 'arg';
|
|
data: T;
|
|
isRejectionMessage?: boolean;
|
|
} | {
|
|
kind: 'formatted-error-arg';
|
|
prefix: string;
|
|
stack: string | null;
|
|
}>;
|
|
};
|
|
export type FormattedErrorEntry = {
|
|
kind: 'formatted-error';
|
|
prefix: string;
|
|
stack: string;
|
|
method: 'error';
|
|
};
|
|
export type ClientLogEntry = ConsoleEntry<unknown> | ConsoleErrorEntry<unknown> | FormattedErrorEntry;
|
|
export type ServerLogEntry = ConsoleEntry<string> | ConsoleErrorEntry<string> | FormattedErrorEntry;
|
|
export declare const UNDEFINED_MARKER = "__next_tagged_undefined";
|
|
export declare function patchConsoleMethod<T extends keyof Console>(methodName: T, wrapper: (methodName: T, ...args: Console[T] extends (...args: infer P) => any ? P : never[]) => void): () => void;
|