Skip to content

Commit 68e3f7d

Browse files
authored
feat: expose GlobalResponse for net.fetch (#215)
1 parent 084d636 commit 68e3f7d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

base/base_header.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
/// <reference types="node" />
77

88
type GlobalEvent = Event & { returnValue: any };
9+
type GlobalResponse = Response;

src/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ export const isBuiltIn = (type: string) => {
285285
'float64array',
286286
'bigint64array',
287287
'biguint64array',
288+
'globalresponse',
288289
];
289290
return builtIns.indexOf(type.toLowerCase().replace(/\[\]/g, '')) !== -1;
290291
};

0 commit comments

Comments
 (0)