File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
lib/node_modules/@stdlib/array/min-dtype/docs/types Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 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*
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 //
Original file line number Diff line number Diff line change 1818
1919import 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...
You can’t perform that action at this time.
0 commit comments