mirror of
https://github.com/standardnotes/app.git
synced 2026-01-11 19:56:41 +00:00
13 lines
394 B
TypeScript
13 lines
394 B
TypeScript
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
|
export class SNLog {
|
|
static log(...message: any): void {
|
|
this.onLog(...message)
|
|
}
|
|
static error<T extends Error>(error: T): T {
|
|
this.onError(error)
|
|
return error
|
|
}
|
|
static onLog: (...message: any) => void
|
|
static onError: (error: Error) => void
|
|
}
|