view models
This commit is contained in:
3
apps/website/lib/interfaces/ErrorReporter.ts
Normal file
3
apps/website/lib/interfaces/ErrorReporter.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export interface ErrorReporter {
|
||||
report(error: Error, context?: unknown): void;
|
||||
}
|
||||
6
apps/website/lib/interfaces/Logger.ts
Normal file
6
apps/website/lib/interfaces/Logger.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export interface Logger {
|
||||
debug(message: string, context?: unknown): void;
|
||||
info(message: string, context?: unknown): void;
|
||||
warn(message: string, context?: unknown): void;
|
||||
error(message: string, error?: Error, context?: unknown): void;
|
||||
}
|
||||
Reference in New Issue
Block a user