diff options
Diffstat (limited to 'types')
-rw-r--r-- | types/ext/api.d.ts | 2 | ||||
-rw-r--r-- | types/ext/log.d.ts | 12 |
2 files changed, 3 insertions, 11 deletions
diff --git a/types/ext/api.d.ts b/types/ext/api.d.ts index 85f4c146..401cb1a5 100644 --- a/types/ext/api.d.ts +++ b/types/ext/api.d.ts @@ -289,7 +289,7 @@ type ApiSurface = { }; return: DictionaryDatabase.MediaDataStringContent[]; }; - log: { + logGenericErrorBackend: { params: { error: Core.SerializedError; level: Log.LogLevel; diff --git a/types/ext/log.d.ts b/types/ext/log.d.ts index 5b33b234..af906387 100644 --- a/types/ext/log.d.ts +++ b/types/ext/log.d.ts @@ -17,22 +17,14 @@ import type {EventNames, EventArgument as BaseEventArgument} from './core'; -export type LogLevel = 'log' | 'info' | 'debug' | 'warn' | 'error'; +export type LogLevel = 'log' | 'warn' | 'error'; export type LogContext = { url: string; }; -/** - * An enum representing the log error level. - * - `0` - _log_, _info_, _debug_ level. - * - `1` - _warn_ level. - * - `2` - _error_ level. - */ -export type LogErrorLevelValue = 0 | 1 | 2; - export type Events = { - log: { + logGenericError: { error: unknown; level: LogLevel; context: LogContext; |