Returns {
debug: {
first(message: string, ...args: unknown[]): void;
once(message: string, ...args: unknown[]): void;
(message: string, ...args: unknown[]): void;
};
error: {
first(message: string, ...args: unknown[]): void;
once(message: string, ...args: unknown[]): void;
(message: string, ...args: unknown[]): void;
};
info: {
first(message: string, ...args: unknown[]): void;
once(message: string, ...args: unknown[]): void;
(message: string, ...args: unknown[]): void;
};
log: {
first(message: string, ...args: unknown[]): void;
once(message: string, ...args: unknown[]): void;
(message: string, ...args: unknown[]): void;
};
warn: {
first(message: string, ...args: unknown[]): void;
once(message: string, ...args: unknown[]): void;
(message: string, ...args: unknown[]): void;
};
}
A console object (it does not inherit all native console methods)
A basic native
consoleenhancement:firstlogging method which prints only the first message among equals (a kind of more basic throttling)oncelogging method which prints only once a message among equals