Skip to content

Commit b93ff4b

Browse files
committed
Update return type
1 parent cf3f508 commit b93ff4b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

lib/node_modules/@stdlib/array/min-dtype/docs/types/index.d.ts

Lines changed: 5 additions & 1 deletion
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 { DataType } from '@stdlib/types/array';
24+
2125
/**
2226
* Returns the minimum array data type of the closest "kind" necessary for storing a provided scalar value.
2327
*
@@ -36,7 +40,7 @@
3640
* var dt = minDataType( 3 );
3741
* // returns 'uint8'
3842
*/
39-
declare function minDataType( value: any ): string;
43+
declare function minDataType( value: any ): DataType;
4044

4145

4246
// EXPORTS //

lib/node_modules/@stdlib/array/min-dtype/docs/types/test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@
1818

1919
import minDataType = require( './index' );
2020

21+
2122
// TESTS //
2223

23-
// The function returns a string..
24+
// The function returns a data type..
2425
{
25-
minDataType( 2.13 ); // $ExpectType string
26+
minDataType( 2.13 ); // $ExpectType DataType
2627
}
2728

2829
// The compiler throws an error if the function is provided an unsupported number of arguments...

0 commit comments

Comments
 (0)