mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
new selfhosted version
This commit is contained in:
23
dashboard/types/error.ts
Normal file
23
dashboard/types/error.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
|
||||
|
||||
export type FetchResponseError = GenericError & {
|
||||
name: string,
|
||||
data: {
|
||||
error: boolean,
|
||||
message: string,
|
||||
stack: string[],
|
||||
statusCode: number,
|
||||
statusMessage: string,
|
||||
url: string
|
||||
},
|
||||
statusCode: number,
|
||||
statusMessage: string,
|
||||
statusText: string
|
||||
}
|
||||
|
||||
export type GenericError = {
|
||||
name?: string,
|
||||
message: string,
|
||||
stack: string,
|
||||
}
|
||||
Reference in New Issue
Block a user