File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
lib/node_modules/@stdlib/fs Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff 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*/
4747interface Rename {
4848 /**
49- * Asynchronously renames a file.
49+ * Renames a file.
5050 *
5151 * @param oldPath - old path
5252 * @param newPath - new path
Original file line number Diff line number Diff line change 1818
1919import rename = require( './index' ) ;
2020
21- const done = ( error : Error ) => {
21+ const done = ( error : Error | null ) => {
2222 if ( error ) {
2323 throw error ;
2424 }
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change 1818
1919import unlink = require( './index' ) ;
2020
21- const done = ( error : Error ) => {
21+ const done = ( error : Error | null ) => {
2222 if ( error ) {
2323 throw error ;
2424 }
You can’t perform that action at this time.
0 commit comments