File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
lib/node_modules/@stdlib/os/configdir/docs/types Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 37
37
* var dir = configdir( 'appname/config' );
38
38
* // e.g., returns '/Users/<username>/Library/Preferences/appname/config'
39
39
*/
40
- declare function configdir ( p ?: string ) : string ;
40
+ declare function configdir ( p ?: string ) : string | null ;
41
41
42
42
43
43
// EXPORTS //
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ import configdir = require( './index' );
23
23
24
24
// The function returns a string...
25
25
{
26
- configdir ( ) ; // $ExpectType string
27
- configdir ( 'appname/config' ) ; // $ExpectType string
26
+ configdir ( ) ; // $ExpectType string | null
27
+ configdir ( 'appname/config' ) ; // $ExpectType string | null
28
28
}
29
29
30
30
// The compiler throws an error if the function is provided a value other than a string...
You can’t perform that action at this time.
0 commit comments