Turning IntercomError.errors a more clear array type

This commit is contained in:
Saulo Tauil
2018-06-20 20:20:16 -07:00
parent 00bb6a0a74
commit a461a4c4e2
+7 -9
View File
@@ -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 }
}