@@ -90,7 +90,7 @@ export interface HttpHookRequestInfo {
9090export interface HttpHookResponseInfo {
9191 duration : number
9292 error ?: Error | undefined
93- headers ?: Record < string , string | string [ ] | undefined > | undefined
93+ headers ?: Record < string , Array < string > | string | undefined > | undefined
9494 method : string
9595 status ?: number | undefined
9696 statusText ?: string | undefined
@@ -326,7 +326,7 @@ export interface HttpResponse {
326326 * console.log(response.headers['set-cookie']) // May be string[]
327327 * ```
328328 */
329- headers : Record < string , string | string [ ] | undefined >
329+ headers : Record < string , Array < string > | string | undefined >
330330 /**
331331 * Parse response body as JSON.
332332 * Type parameter `T` allows specifying the expected JSON structure.
@@ -1050,7 +1050,7 @@ async function httpRequestAttempt(
10501050 emitResponse ( {
10511051 headers : res . headers as Record <
10521052 string ,
1053- string | string [ ] | undefined
1053+ Array < string > | string | undefined
10541054 > ,
10551055 status : res . statusCode ,
10561056 statusText : res . statusMessage ,
@@ -1131,7 +1131,7 @@ async function httpRequestAttempt(
11311131 body : responseBody ,
11321132 headers : res . headers as Record <
11331133 string ,
1134- string | string [ ] | undefined
1134+ Array < string > | string | undefined
11351135 > ,
11361136 json < T = unknown > ( ) : T {
11371137 return JSON . parse ( responseBody . toString ( 'utf8' ) ) as T
@@ -1148,7 +1148,7 @@ async function httpRequestAttempt(
11481148 emitResponse ( {
11491149 headers : res . headers as Record <
11501150 string ,
1151- string | string [ ] | undefined
1151+ Array < string > | string | undefined
11521152 > ,
11531153 status : res . statusCode ,
11541154 statusText : res . statusMessage ,
0 commit comments