Skip to content

Commit

Permalink
Fix fn type
Browse files Browse the repository at this point in the history
  • Loading branch information
bkiac committed Nov 29, 2024
1 parent 2d3979a commit bc64217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function asyncFn<
>(
f: (...args: A) => R,
): (...args: A) => AsyncResult<InferOk<Awaited<R>>, InferErr<Awaited<R>>> {
return function (...args: any[]): AsyncResult<InferOk<Awaited<R>>, InferErr<Awaited<R>>> {
return function (...args: A): AsyncResult<InferOk<Awaited<R>>, InferErr<Awaited<R>>> {
return new AsyncResult(f(...args));
};
}

0 comments on commit bc64217

Please sign in to comment.