Skip to content

Commit 35434c5

Browse files
committed
Remove nullary callback
1 parent 3c30b46 commit 35434c5

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@
1818

1919
// TypeScript Version: 2.0
2020

21-
/**
22-
* Callback invoked after testing for path existence.
23-
*/
24-
type Nullary = () => void;
25-
2621
/**
2722
* Callback invoked after testing for path existence.
2823
*
@@ -36,15 +31,15 @@ type Unary = ( bool: boolean ) => void;
3631
* @param err - error argument
3732
* @param bool - boolean indicating whether a path exists
3833
*/
39-
type Binary = ( err: Error, bool: boolean ) => void;
34+
type Binary = ( err: Error | null, bool: boolean ) => void;
4035

4136
/**
4237
* Callback invoked after testing for path existence.
4338
*
4439
* @param err - error argument
4540
* @param bool - boolean indicating whether a path exists
4641
*/
47-
type Callback = Nullary | Unary | Binary;
42+
type Callback = Unary | Binary;
4843

4944
/**
5045
* Interface for testing whether a path exists on the filesystem.

lib/node_modules/@stdlib/fs/exists/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 exists = require( './index' );
2020

21-
const done = ( error: Error, bool: boolean ) => {
21+
const done = ( error: Error | null, bool: boolean ) => {
2222
if ( error || ( bool !== true && bool !== false ) ) {
2323
throw error;
2424
}

0 commit comments

Comments
 (0)