style(aio): correctly type tuple

This commit is contained in:
Georgios Kalpakas 2017-02-27 11:59:15 +02:00 committed by Chuck Jazdzewski
parent c8ead9bcd0
commit 9df9bdc0f5
1 changed files with 3 additions and 3 deletions

View File

@ -120,13 +120,13 @@ class Helper {
});
}
public verifyResponse(status: number | (number | string)[], regex = /^/): VerifyCmdResultFn {
public verifyResponse(status: number | [number, string], regex = /^/): VerifyCmdResultFn {
let statusCode: number;
let statusText: string;
if (Array.isArray(status)) {
statusCode = status[0] as number;
statusText = status[1] as string;
statusCode = status[0];
statusText = status[1];
} else {
statusCode = status;
statusText = http.STATUS_CODES[statusCode];