refactor: split hooks types and utils by domain

This commit is contained in:
Tom Boullay
2026-04-30 11:49:18 +02:00
parent 9ac5844182
commit b1187b68ae
65 changed files with 83 additions and 84 deletions
+26
View File
@@ -0,0 +1,26 @@
export type LogLevel = "debug" | "info" | "warn" | "error";
type LogValue =
| string
| number
| boolean
| null
| undefined
| Error
| DOMException
| { [key: string]: LogValue }
| LogValue[];
export type LogContext = Readonly<Record<string, LogValue>>;
export interface LogEntry {
timestamp: string;
level: LogLevel;
scope: string;
message: string;
context?: LogContext;
}
export interface LoggerConfig {
minLevel: LogLevel;
}