@@ -476,10 +476,29 @@ declare namespace primordials {
476
476
constructor : new ( length : number ) => T ,
477
477
items : readonly TypedArrayContentType < T > [ ] ,
478
478
) : T ;
479
+ export const TypedArray : TypedArray ;
480
+ export const TypedArrayPrototype :
481
+ | typeof Uint8Array . prototype
482
+ | typeof Int8Array . prototype
483
+ | typeof Uint16Array . prototype
484
+ | typeof Int16Array . prototype
485
+ | typeof Uint32Array . prototype
486
+ | typeof Int32Array . prototype
487
+ | typeof Float32Array . prototype
488
+ | typeof Float64Array . prototype
489
+ | typeof BigInt64Array . prototype
490
+ | typeof BigUint64Array . prototype
491
+ | typeof Uint8ClampedArray . prototype ;
479
492
export const TypedArrayPrototypeGetBuffer : UncurryGetter < TypedArray , "buffer" > ;
480
493
export const TypedArrayPrototypeGetByteLength : UncurryGetter < TypedArray , "byteLength" > ;
481
494
export const TypedArrayPrototypeGetByteOffset : UncurryGetter < TypedArray , "byteOffset" > ;
482
495
export const TypedArrayPrototypeGetLength : UncurryGetter < TypedArray , "length" > ;
496
+ export function TypedArrayPrototypeAt < T extends TypedArray > ( self : T , ...args : Parameters < T [ "at" ] > ) : ReturnType < T [ "at" ] > ;
497
+ export function TypedArrayPrototypeIncludes < T extends TypedArray > ( self : T , ...args : Parameters < T [ "includes" ] > ) : ReturnType < T [ "includes" ] > ;
498
+ export function TypedArrayPrototypeFill < T extends TypedArray > ( self : T , ...args : Parameters < T [ "fill" ] > ) : ReturnType < T [ "fill" ] > ;
499
+ export function TypedArrayPrototypeSet < T extends TypedArray > ( self : T , ...args : Parameters < T [ "set" ] > ) : ReturnType < T [ "set" ] > ;
500
+ export function TypedArrayPrototypeSubarray < T extends TypedArray > ( self : T , ...args : Parameters < T [ "subarray" ] > ) : ReturnType < T [ "subarray" ] > ;
501
+ export function TypedArrayPrototypeSlice < T extends TypedArray > ( self : T , ...args : Parameters < T [ "slice" ] > ) : ReturnType < T [ "slice" ] > ;
483
502
export function TypedArrayPrototypeGetSymbolToStringTag ( self : unknown ) :
484
503
| 'Int8Array'
485
504
| 'Int16Array'
0 commit comments