From a461a4c4e2571cdfa8d4b639a33a3851ebebe096 Mon Sep 17 00:00:00 2001 From: Saulo Tauil Date: Wed, 20 Jun 2018 20:20:16 -0700 Subject: [PATCH] Turning IntercomError.errors a more clear array type --- types/intercom-client/IntercomError.d.ts | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/types/intercom-client/IntercomError.d.ts b/types/intercom-client/IntercomError.d.ts index 44482e4e03..c0ed687a3c 100644 --- a/types/intercom-client/IntercomError.d.ts +++ b/types/intercom-client/IntercomError.d.ts @@ -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 } }