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

ThenKeyOr is not removing the void type #1

Closed
Blu-J opened this issue Dec 12, 2017 · 0 comments · Fixed by #2
Closed

ThenKeyOr is not removing the void type #1

Blu-J opened this issue Dec 12, 2017 · 0 comments · Fixed by #2

Comments

@Blu-J
Copy link
Owner

Blu-J commented Dec 12, 2017

Let us have a structure S.
Let a key K might be on structure with partial property P = S[K] \Intersect !void .(For example S = { K?: P })
Let fn be idLens<S>().thenKeyOr('fallback', K).get
We expect fn :: S -> P but get fn :: S -> P \Union void
To solve this I expect that we need subtraction types microsoft/TypeScript#4183

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 a pull request may close this issue.

1 participant