Open phillip-le opened 2 months ago
type LogFn = (message: string, data?: Record<string, unknown>) => void; type Logger = { info: LogFn; error: LogFn; child: Logger; } const partialLogger: Partial<Logger> = { error: vi.fn(); } const logger = partialLogger as Logger;