summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/util
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-05-31 12:39:54 -0600
committerGitHub <noreply@github.com>2023-05-31 12:39:54 -0600
commitb1e28b0708b378fa6cbe3a0ec95bb94b33775355 (patch)
treec0fd2dc804d450bf4c1cac303db4df3ed72c1dbd /ext/node/polyfills/internal/util
parent6e0bf093c558358c463109637615fddc4020eeac (diff)
chore(ext/node): Implement stubs for Http2Session (#19329)
Fleshes out all the stubs for `node:http2`.
Diffstat (limited to 'ext/node/polyfills/internal/util')
-rw-r--r--ext/node/polyfills/internal/util/types.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/node/polyfills/internal/util/types.ts b/ext/node/polyfills/internal/util/types.ts
index 8ed99456b..24d323953 100644
--- a/ext/node/polyfills/internal/util/types.ts
+++ b/ext/node/polyfills/internal/util/types.ts
@@ -79,7 +79,7 @@ export function isInt32Array(value: unknown): value is Int32Array {
return _getTypedArrayToStringTag.call(value) === "Int32Array";
}
-export function isTypedArray(value: unknown): value is
+export type TypedArray =
| BigInt64Array
| BigUint64Array
| Float32Array
@@ -90,7 +90,9 @@ export function isTypedArray(value: unknown): value is
| Uint8Array
| Uint8ClampedArray
| Uint16Array
- | Uint32Array {
+ | Uint32Array;
+
+export function isTypedArray(value: unknown): value is TypedArray {
return _getTypedArrayToStringTag.call(value) !== undefined;
}