Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/lib/es2020.bigint.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ declare var BigInt: BigIntConstructor;
*/
interface BigInt64Array {
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
readonly BYTES_PER_ELEMENT: 8;

/** The ArrayBuffer instance referenced by the array. */
readonly buffer: ArrayBufferLike;
Expand Down Expand Up @@ -376,7 +376,7 @@ interface BigInt64ArrayConstructor {
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;

/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
readonly BYTES_PER_ELEMENT: 8;

/**
* Returns a new array from a set of elements.
Expand All @@ -402,7 +402,7 @@ declare var BigInt64Array: BigInt64ArrayConstructor;
*/
interface BigUint64Array {
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
readonly BYTES_PER_ELEMENT: 8;

/** The ArrayBuffer instance referenced by the array. */
readonly buffer: ArrayBufferLike;
Expand Down Expand Up @@ -648,7 +648,7 @@ interface BigUint64ArrayConstructor {
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;

/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
readonly BYTES_PER_ELEMENT: 8;

/**
* Returns a new array from a set of elements.
Expand Down
36 changes: 18 additions & 18 deletions src/lib/es5.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1860,7 +1860,7 @@ interface Int8Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
readonly BYTES_PER_ELEMENT: 1;

/**
* The ArrayBuffer instance referenced by the array.
Expand Down Expand Up @@ -2108,7 +2108,7 @@ interface Int8ArrayConstructor {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
readonly BYTES_PER_ELEMENT: 1;

/**
* Returns a new array from a set of elements.
Expand Down Expand Up @@ -2140,7 +2140,7 @@ interface Uint8Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
readonly BYTES_PER_ELEMENT: 1;

/**
* The ArrayBuffer instance referenced by the array.
Expand Down Expand Up @@ -2389,7 +2389,7 @@ interface Uint8ArrayConstructor {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
readonly BYTES_PER_ELEMENT: 1;

/**
* Returns a new array from a set of elements.
Expand Down Expand Up @@ -2421,7 +2421,7 @@ interface Uint8ClampedArray {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
readonly BYTES_PER_ELEMENT: 1;

/**
* The ArrayBuffer instance referenced by the array.
Expand Down Expand Up @@ -2670,7 +2670,7 @@ interface Uint8ClampedArrayConstructor {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
readonly BYTES_PER_ELEMENT: 1;

/**
* Returns a new array from a set of elements.
Expand Down Expand Up @@ -2702,7 +2702,7 @@ interface Int16Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
readonly BYTES_PER_ELEMENT: 2;

/**
* The ArrayBuffer instance referenced by the array.
Expand Down Expand Up @@ -2950,7 +2950,7 @@ interface Int16ArrayConstructor {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
readonly BYTES_PER_ELEMENT: 2;

/**
* Returns a new array from a set of elements.
Expand Down Expand Up @@ -2982,7 +2982,7 @@ interface Uint16Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
readonly BYTES_PER_ELEMENT: 2;

/**
* The ArrayBuffer instance referenced by the array.
Expand Down Expand Up @@ -3231,7 +3231,7 @@ interface Uint16ArrayConstructor {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
readonly BYTES_PER_ELEMENT: 2;

/**
* Returns a new array from a set of elements.
Expand Down Expand Up @@ -3262,7 +3262,7 @@ interface Int32Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
readonly BYTES_PER_ELEMENT: 4;

/**
* The ArrayBuffer instance referenced by the array.
Expand Down Expand Up @@ -3511,7 +3511,7 @@ interface Int32ArrayConstructor {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
readonly BYTES_PER_ELEMENT: 4;

/**
* Returns a new array from a set of elements.
Expand Down Expand Up @@ -3543,7 +3543,7 @@ interface Uint32Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
readonly BYTES_PER_ELEMENT: 4;

/**
* The ArrayBuffer instance referenced by the array.
Expand Down Expand Up @@ -3791,7 +3791,7 @@ interface Uint32ArrayConstructor {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
readonly BYTES_PER_ELEMENT: 4;

/**
* Returns a new array from a set of elements.
Expand Down Expand Up @@ -3823,7 +3823,7 @@ interface Float32Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
readonly BYTES_PER_ELEMENT: 4;

/**
* The ArrayBuffer instance referenced by the array.
Expand Down Expand Up @@ -4072,7 +4072,7 @@ interface Float32ArrayConstructor {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
readonly BYTES_PER_ELEMENT: 4;

/**
* Returns a new array from a set of elements.
Expand Down Expand Up @@ -4104,7 +4104,7 @@ interface Float64Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
readonly BYTES_PER_ELEMENT: 8;

/**
* The ArrayBuffer instance referenced by the array.
Expand Down Expand Up @@ -4353,7 +4353,7 @@ interface Float64ArrayConstructor {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
readonly BYTES_PER_ELEMENT: 8;

/**
* Returns a new array from a set of elements.
Expand Down
16 changes: 8 additions & 8 deletions tests/baselines/reference/es2022SharedMemory.types
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ const sab = new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 1024);
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>Int32Array.BYTES_PER_ELEMENT * 1024 : number
> : ^^^^^^
>Int32Array.BYTES_PER_ELEMENT : number
> : ^^^^^^
>Int32Array.BYTES_PER_ELEMENT : 4
> : ^
>Int32Array : Int32ArrayConstructor
> : ^^^^^^^^^^^^^^^^^^^^^
>BYTES_PER_ELEMENT : number
> : ^^^^^^
>BYTES_PER_ELEMENT : 4
> : ^
>1024 : 1024
> : ^^^^

Expand All @@ -38,12 +38,12 @@ const sab64 = new SharedArrayBuffer(BigInt64Array.BYTES_PER_ELEMENT * 1024);
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>BigInt64Array.BYTES_PER_ELEMENT * 1024 : number
> : ^^^^^^
>BigInt64Array.BYTES_PER_ELEMENT : number
> : ^^^^^^
>BigInt64Array.BYTES_PER_ELEMENT : 8
> : ^
>BigInt64Array : BigInt64ArrayConstructor
> : ^^^^^^^^^^^^^^^^^^^^^^^^
>BYTES_PER_ELEMENT : number
> : ^^^^^^
>BYTES_PER_ELEMENT : 8
> : ^
>1024 : 1024
> : ^^^^

Expand Down
Loading