mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Turning IntercomError.errors a more clear array type
This commit is contained in:
+7
-9
@@ -2,15 +2,13 @@
|
||||
export interface IntercomError {
|
||||
statusCode: number,
|
||||
body: {
|
||||
type: "error.list",
|
||||
request_id: string,
|
||||
errors: [
|
||||
{
|
||||
code: string, //"400",
|
||||
message: string
|
||||
}
|
||||
]
|
||||
type: "error.list",
|
||||
request_id: string,
|
||||
errors: Array<{
|
||||
code: string, //"400",
|
||||
message: string
|
||||
}>
|
||||
},
|
||||
headers: { status: string } & {[k: string]: string}
|
||||
headers: { status: string } & { [k: string]: string }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user