We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
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
Is there something like O.Nullable but that actually makes keys turn into V | null? e.g.
O.Nullable
V | null
interface A { x: number; y: number } type AN = O.NullNullable<A, "x"> // AN is { x: number | null; y: number }
The text was updated successfully, but these errors were encountered:
Yes, you can use Update
Sorry, something went wrong.
Is this supposed to work then? It doesn't for me
interface A {y: number} type C = O.Update<A, "y", A.x | null> const c: C = {y: 4} // complains about 'y' being a number
Nevermind, didn't work on 4.1.0 but works on 4.3.0
No branches or pull requests
Is there something like
O.Nullable
but that actually makes keys turn intoV | null
?e.g.
The text was updated successfully, but these errors were encountered: