From e087f1dc86d6ecbd22f5742197b5b759ecd33bf7 Mon Sep 17 00:00:00 2001 From: Prajwal Kulkarni Date: Sat, 24 Feb 2024 09:12:58 +0000 Subject: [PATCH] refactor: use generics to improve type declarations for async/if then --- .../@stdlib/utils/async/if-then/docs/types/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/utils/async/if-then/docs/types/index.d.ts b/lib/node_modules/@stdlib/utils/async/if-then/docs/types/index.d.ts index 395a4ffba572..a02fa739c68b 100644 --- a/lib/node_modules/@stdlib/utils/async/if-then/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/utils/async/if-then/docs/types/index.d.ts @@ -24,7 +24,7 @@ * @param error - encountered error or null * @param args - results */ -type Callback = ( error: Error | null, ...args: Array ) => void; +type Callback = ( error: Error | null, ...args: Array ) => void; /** * Predicate callback function. @@ -66,7 +66,7 @@ type Predicate = ( clbk: PredicateCallback ) => void; * * @param clbk - callback to invoke upon function completion */ -type ResultFunction = ( clbk: Callback ) => void; +type ResultFunction = ( clbk: Callback ) => void; /** * If a predicate function returns a truthy value, invokes `x`; otherwise, invokes `y`. @@ -108,7 +108,7 @@ type ResultFunction = ( clbk: Callback ) => void; * } * ifthenAsync( predicate, x, y, done ); */ -declare function ifthenAsync( predicate: Predicate, x: ResultFunction, y: ResultFunction, done: Callback ): void; +declare function ifthenAsync( predicate: Predicate, x: ResultFunction, y: ResultFunction, done: Callback ): void; // EXPORTS //