Type which encompasses possible instances of TypedArray
classes.
NOTE: This does not include BigInt64Array and
BitUint64Array because those are part of ES2020 and
not supported by certain TS configurations. If using
either in areTypedArraysEqual, you can cast the
instance as TypedArray and it will work as expected,
because runtime checks will still work for those classes.
Type which encompasses possible instances of TypedArray classes.
NOTE: This does not include
BigInt64Array
andBitUint64Array
because those are part of ES2020 and not supported by certain TS configurations. If using either inareTypedArraysEqual
, you can cast the instance asTypedArray
and it will work as expected, because runtime checks will still work for those classes.