Skip to content

Commit

Permalink
Default to union of previous generics
Browse files Browse the repository at this point in the history
  • Loading branch information
zoontek committed Dec 18, 2024
1 parent 062830e commit 2415921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AsyncData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ class __AsyncData<A> {
return mapper((this as Done<A>).value);
}

match<B1, B2 = B1, B3 = B1>(
match<B1, B2 = B1, B3 = B1 | B2>(
this: AsyncData<A>,
config: {
Done: (value: A) => B1;
Expand Down

0 comments on commit 2415921

Please sign in to comment.