22
22
23
23
/// <reference types="@stdlib/types"/>
24
24
25
- import { ArrayLike , RealOrComplexTypedArray , RealOrComplexDataType } from '@stdlib/types/array' ;
25
+ import { ArrayLike , RealOrComplexTypedArray , NumericDataType } from '@stdlib/types/array' ;
26
26
import ArrayBuffer = require( '@stdlib/array/buffer' ) ;
27
27
28
28
/**
@@ -39,7 +39,7 @@ import ArrayBuffer = require( '@stdlib/array/buffer' );
39
39
* var arr = typedarray( 'float32');
40
40
* // returns <Float32Array>
41
41
*/
42
- declare function typedarray ( dtype ?: RealOrComplexDataType ) : RealOrComplexTypedArray ;
42
+ declare function typedarray ( dtype ?: NumericDataType ) : RealOrComplexTypedArray ;
43
43
44
44
/**
45
45
* Creates a typed array.
@@ -56,7 +56,7 @@ declare function typedarray( dtype?: RealOrComplexDataType ): RealOrComplexTyped
56
56
* var arr = typedarray( 2, 'float32' );
57
57
* // returns <Float32Array>[ 0.0, 0.0 ]
58
58
*/
59
- declare function typedarray ( length : number , dtype ?: RealOrComplexDataType ) : RealOrComplexTypedArray ;
59
+ declare function typedarray ( length : number , dtype ?: NumericDataType ) : RealOrComplexTypedArray ;
60
60
61
61
/**
62
62
* Creates a typed array.
@@ -83,7 +83,7 @@ declare function typedarray( length: number, dtype?: RealOrComplexDataType ): Re
83
83
* var arr2 = typedarray( arr1, 'uint32' );
84
84
* // returns <Uint32Array>[ 5, 3 ]
85
85
*/
86
- declare function typedarray ( typedarray : RealOrComplexTypedArray , dtype ?: RealOrComplexDataType ) : RealOrComplexTypedArray ;
86
+ declare function typedarray ( typedarray : RealOrComplexTypedArray , dtype ?: NumericDataType ) : RealOrComplexTypedArray ;
87
87
88
88
/**
89
89
* Creates a typed array.
@@ -100,7 +100,7 @@ declare function typedarray( typedarray: RealOrComplexTypedArray, dtype?: RealOr
100
100
* var arr = typedarray( [ 5, -3 ], 'int32' );
101
101
* // returns <Int32Array>[ 5, -3 ]
102
102
*/
103
- declare function typedarray ( obj : ArrayLike < number > | Iterable < any > , dtype ?: RealOrComplexDataType ) : RealOrComplexTypedArray ;
103
+ declare function typedarray ( obj : ArrayLike < number > | Iterable < any > , dtype ?: NumericDataType ) : RealOrComplexTypedArray ;
104
104
105
105
/**
106
106
* Creates a typed array.
@@ -123,7 +123,7 @@ declare function typedarray( obj: ArrayLike<number> | Iterable<any>, dtype?: Rea
123
123
* var arr = typedarray( buf, 'float32' );
124
124
* // returns <Float32Array>[ 0.0, 0.0, 0.0, 0.0 ]
125
125
*/
126
- declare function typedarray ( buffer : ArrayBuffer , dtype ?: RealOrComplexDataType ) : RealOrComplexTypedArray ;
126
+ declare function typedarray ( buffer : ArrayBuffer , dtype ?: NumericDataType ) : RealOrComplexTypedArray ;
127
127
128
128
/**
129
129
* Creates a typed array.
@@ -147,7 +147,7 @@ declare function typedarray( buffer: ArrayBuffer, dtype?: RealOrComplexDataType
147
147
* var arr = typedarray( buf, 8, 'float32' );
148
148
* // returns <Float32Array>[ 0.0, 0.0 ]
149
149
*/
150
- declare function typedarray ( buffer : ArrayBuffer , byteOffset ?: number , dtype ?: RealOrComplexDataType ) : RealOrComplexTypedArray ;
150
+ declare function typedarray ( buffer : ArrayBuffer , byteOffset ?: number , dtype ?: NumericDataType ) : RealOrComplexTypedArray ;
151
151
152
152
/**
153
153
* Creates a typed array.
@@ -172,7 +172,7 @@ declare function typedarray( buffer: ArrayBuffer, byteOffset?: number, dtype?: R
172
172
* var arr = typedarray( buf, 8, 2, 'int32' );
173
173
* // returns <Int32Array>[ 0, 0 ]
174
174
*/
175
- declare function typedarray ( buffer : ArrayBuffer , byteOffset ?: number , length ?: number , dtype ?: RealOrComplexDataType ) : RealOrComplexTypedArray ;
175
+ declare function typedarray ( buffer : ArrayBuffer , byteOffset ?: number , length ?: number , dtype ?: NumericDataType ) : RealOrComplexTypedArray ;
176
176
177
177
178
178
// EXPORTS //
0 commit comments