Skip to content

Commit 2b84cb2

Browse files
committed
Fix errors
1 parent 9197f7e commit 2b84cb2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/node_modules/@stdlib/os/configdir/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

lib/node_modules/@stdlib/os/homedir/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
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 //

lib/node_modules/@stdlib/os/homedir/docs/types/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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...

0 commit comments

Comments
 (0)