File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
lib/node_modules/@stdlib/os Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ import configdir = require( './index' );
3737 configdir ( ( x : number ) : number => x ) ; // $ExpectError
3838}
3939
40- // The function does not compile if provided insufficient arguments ...
40+ // The function does not compile if provided more than one argument ...
4141{
4242 configdir ( 'appname/config' , 2 ) ; // $ExpectError
4343}
Original file line number Diff line number Diff line change 3131* var home = homedir();
3232* // e.g., returns '/Users/<username>'
3333*/
34- declare function homedir ( ) : string ;
34+ declare function homedir ( ) : string | null ;
3535
3636
3737// EXPORTS //
Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ import homedir = require( './index' );
2121
2222// TESTS //
2323
24- // The function returns a string...
24+ // The function returns a string or null ...
2525{
26- homedir ( ) ; // $ExpectType string
26+ homedir ( ) ; // $ExpectType string | null
2727}
2828
2929// The function does not compile if provided arguments...
You can’t perform that action at this time.
0 commit comments