Skip to content

Commit

Permalink
Merge pull request #91 from swan-io/default-to-union
Browse files Browse the repository at this point in the history
Default to union of previous generics
  • Loading branch information
bloodyowl authored Dec 18, 2024
2 parents 062830e + 2415921 commit f9f98d4
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 f9f98d4

Please sign in to comment.