Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove type predicates #10

Merged
merged 3 commits into from
Nov 4, 2023
Merged

Remove type predicates #10

merged 3 commits into from
Nov 4, 2023

Conversation

bkiac
Copy link
Owner

@bkiac bkiac commented Nov 4, 2023

This PR removes type predicates because they're not very useful compared to the static properties that enable the discriminated union behavior, i.e., TypeScript can't know that if isOk is true that means it can't be an Err.

@bkiac bkiac changed the title Remove "is" methods Remove type predicates Nov 4, 2023
@bkiac bkiac marked this pull request as ready for review November 4, 2023 07:56
@bkiac bkiac merged commit ef04b88 into main Nov 4, 2023
5 checks passed
@bkiac bkiac deleted the remove-is branch November 4, 2023 07:56
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.

1 participant