File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
lib/node_modules/@stdlib/fs/exists/docs/types Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 1818
1919import 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 }
You can’t perform that action at this time.
0 commit comments