diff options
Diffstat (limited to 'src/misc/errors.ts')
| -rw-r--r-- | src/misc/errors.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/misc/errors.ts b/src/misc/errors.ts index 18480f5..2eba9ba 100644 --- a/src/misc/errors.ts +++ b/src/misc/errors.ts @@ -1,6 +1,8 @@ export const DOES_NOT_SUPPORT_FETCH = 0; -export const errors = { +type ErrorInfo = { message: string; detail?: string }; + +export const errors: { default: ErrorInfo; [code: number]: ErrorInfo } = { [DOES_NOT_SUPPORT_FETCH]: { message: 'Browser not supported!', detail: 'This browser does not support "fetch", please choose another one.', |
