File tree Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change 1
1
import type names from 'possible-typed-array-names' ;
2
+ import type { TypedArray } from 'is-typed-array' ;
2
3
3
4
declare function typedArrayLength ( value : typedArrayLength . TypedArray ) : number ;
4
5
declare function typedArrayLength ( value : unknown ) : false ;
5
6
6
7
declare namespace typedArrayLength {
7
- type TypedArray =
8
- | Int8Array
9
- | Uint8Array
10
- | Uint8ClampedArray
11
- | Int16Array
12
- | Uint16Array
13
- | Int32Array
14
- | Uint32Array
15
- | Float32Array
16
- | Float64Array
17
- | BigInt64Array
18
- | BigUint64Array ;
8
+ export type { TypedArray } ;
19
9
20
- type TypedArrayName = typeof names [ number ] ;
10
+ export type TypedArrayName = typeof names [ number ] ;
21
11
}
22
12
23
13
export = typedArrayLength ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ var gPO = require('reflect.getprototypeof/polyfill')();
13
13
/** @typedef {{ [k in `$${import('.').TypedArrayName}` | '__proto__']: k extends '__proto__' ? null : TypedArrayLengthGetter } } Cache */
14
14
15
15
/** @type {Cache } */
16
- // @ts -expect-error TS doesn't seem to have a "will eventually satisfy" type
16
+ // @ts -expect-error TS `satisfies` doesn't work in jsdoc
17
17
var getters = { __proto__ : null } ;
18
18
var oDP = Object . defineProperty ;
19
19
if ( gOPD ) {
You can’t perform that action at this time.
0 commit comments