Skip to content

Commit 952ea72

Browse files
committed
fix: properly type predicate error parameter
1 parent 174544f commit 952ea72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/node_modules/@stdlib/utils/async/if-else/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type PredicateUnary = ( error: Error ) => void;
4444
* @param error - error object
4545
* @param bool - condition used to determine whether to invoke callback with `x` or `y`
4646
*/
47-
type PredicateBinary = ( error: Error, bool: boolean ) => void;
47+
type PredicateBinary = ( error: Error | null, bool: boolean ) => void;
4848

4949
/**
5050
* Predicate callback function.

lib/node_modules/@stdlib/utils/async/if-then/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type PredicateUnary = ( error: Error ) => void;
4444
* @param error - error object
4545
* @param bool - condition used to determine whether to invoke `x` or `y`
4646
*/
47-
type PredicateBinary = ( error: Error, bool: boolean ) => void;
47+
type PredicateBinary = ( error: Error | null, bool: boolean ) => void;
4848

4949
/**
5050
* Predicate callback function.

0 commit comments

Comments
 (0)