Skip to content

Conversation

@Josh-a-e
Copy link

No description provided.

@tim-smart
Copy link
Owner

Needs some fixes and then a pnpm changeset :)

@Josh-a-e
Copy link
Author

@tim-smart

refinement: Refinement<Result<A, E>, B>,
f: (result: B) => Option.Option<C>
): any
when<C>(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to keep this overload

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's line for line identical to the one below it 👍

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typescript ignores the implementation types when you use this overload pattern

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants