main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
509 bytes
|
Line | |
---|
1 | import type names from 'possible-typed-array-names';
|
---|
2 |
|
---|
3 | declare function typedArrayLength(value: typedArrayLength.TypedArray): number;
|
---|
4 | declare function typedArrayLength(value: unknown): false;
|
---|
5 |
|
---|
6 | 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;
|
---|
19 |
|
---|
20 | type TypedArrayName = typeof names[number];
|
---|
21 | }
|
---|
22 |
|
---|
23 | export = typedArrayLength;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.