Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jun 27, 2024
1 parent 9ea1cb9 commit 4a47b39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/async/tryit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function tryit<Args extends any[], Return>(
...args: Args
): Return extends Promise<any>
? Promise<[Error, undefined] | [undefined, Awaited<Return>]>
: [Error, undefined] | [undefined, Return] {
: [Error, undefined] | [undefined, Return] => {
try {
const result = func(...args)
if (isPromise(result)) {
Expand Down

0 comments on commit 4a47b39

Please sign in to comment.