You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 getfn :: S -> P \Union void
To solve this I expect that we need subtraction types microsoft/TypeScript#4183
The text was updated successfully, but these errors were encountered: