From b1e28b0708b378fa6cbe3a0ec95bb94b33775355 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Wed, 31 May 2023 12:39:54 -0600 Subject: chore(ext/node): Implement stubs for Http2Session (#19329) Fleshes out all the stubs for `node:http2`. --- ext/node/polyfills/internal/util/types.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ext/node/polyfills/internal') 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; } -- cgit v1.2.3