diff --git a/typings/primordials.d.ts b/typings/primordials.d.ts index c263bd9c4e243b..d340225f554eac 100644 --- a/typings/primordials.d.ts +++ b/typings/primordials.d.ts @@ -479,10 +479,29 @@ declare namespace primordials { constructor: new (length: number) => T, items: readonly TypedArrayContentType[], ): T; + export const TypedArray: TypedArray; + export const TypedArrayPrototype: + | typeof Uint8Array.prototype + | typeof Int8Array.prototype + | typeof Uint16Array.prototype + | typeof Int16Array.prototype + | typeof Uint32Array.prototype + | typeof Int32Array.prototype + | typeof Float32Array.prototype + | typeof Float64Array.prototype + | typeof BigInt64Array.prototype + | typeof BigUint64Array.prototype + | typeof Uint8ClampedArray.prototype; export const TypedArrayPrototypeGetBuffer: UncurryGetter; export const TypedArrayPrototypeGetByteLength: UncurryGetter; export const TypedArrayPrototypeGetByteOffset: UncurryGetter; export const TypedArrayPrototypeGetLength: UncurryGetter; + export function TypedArrayPrototypeAt(self: T, ...args: Parameters): ReturnType; + export function TypedArrayPrototypeIncludes(self: T, ...args: Parameters): ReturnType; + export function TypedArrayPrototypeFill(self: T, ...args: Parameters): ReturnType; + export function TypedArrayPrototypeSet(self: T, ...args: Parameters): ReturnType; + export function TypedArrayPrototypeSubarray(self: T, ...args: Parameters): ReturnType; + export function TypedArrayPrototypeSlice(self: T, ...args: Parameters): ReturnType; export function TypedArrayPrototypeGetSymbolToStringTag(self: unknown): | 'Int8Array' | 'Int16Array'