Skip to content

Commit 5be86d7

Browse files
committed
Update declarations
1 parent cf6b6f8 commit 5be86d7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/node_modules/@stdlib/array/typed-dtypes/docs/types/index.d.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818

1919
// TypeScript Version: 2.0
2020

21+
/// <reference types="@stdlib/types"/>
22+
23+
import { RealOrComplexDataType as DataType } from '@stdlib/types/array';
24+
2125
/**
2226
* Returns a list of typed array data types.
2327
*
@@ -27,7 +31,7 @@
2731
* var list = dtypes();
2832
* // e.g., returns [ 'float32', 'float64', 'int16', 'int32', 'int8', 'uint16', 'uint32', 'uint8', 'uint8c', 'complex128', 'complex64' ]
2933
*/
30-
declare function dtypes(): Array<string>;
34+
declare function dtypes(): Array<DataType>;
3135

3236

3337
// EXPORTS //

lib/node_modules/@stdlib/array/typed-dtypes/docs/types/test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import dtypes = require( './index' );
2323

2424
// The function returns a string array..
2525
{
26-
dtypes(); // $ExpectType string[]
26+
dtypes(); // $ExpectType RealOrComplexDataType[]
2727
}
2828

2929
// The compiler throws an error if the function is provided arguments...

0 commit comments

Comments
 (0)