Skip to content

Commit fe42320

Browse files
committed
Fix error type
1 parent 3ab7917 commit fe42320

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/node_modules/@stdlib/fs/rename/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type Nullary = () => void;
3232
*
3333
* @param err - error argument
3434
*/
35-
type Unary = ( err: Error ) => void;
35+
type Unary = ( err: Error | null ) => void;
3636

3737
/**
3838
* Callback invoked after renaming a file.
@@ -46,7 +46,7 @@ type Callback = Nullary | Unary;
4646
*/
4747
interface Rename {
4848
/**
49-
* Asynchronously renames a file.
49+
* Renames a file.
5050
*
5151
* @param oldPath - old path
5252
* @param newPath - new path

lib/node_modules/@stdlib/fs/rename/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

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

21-
const done = ( error: Error ) => {
21+
const done = ( error: Error | null ) => {
2222
if ( error ) {
2323
throw error;
2424
}

lib/node_modules/@stdlib/fs/unlink/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type Nullary = () => void;
3232
*
3333
* @param err - error argument
3434
*/
35-
type Unary = ( err: Error ) => void;
35+
type Unary = ( err: Error | null ) => void;
3636

3737
/**
3838
* Callback invoked upon removing an entry.

lib/node_modules/@stdlib/fs/unlink/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

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

21-
const done = ( error: Error ) => {
21+
const done = ( error: Error | null ) => {
2222
if ( error ) {
2323
throw error;
2424
}

0 commit comments

Comments
 (0)