We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const Info = Record({ x: Number }).And(Partial({ y: Number })); const AllPartialInfo = Partialize(Info); type AllPartialInfo = Static<typeof AllPartialInfo>; // -> { x?: number | undefined; } & { y?: number | undefined; }
Is there something like above Partialize?
Partialize
The text was updated successfully, but these errors were encountered:
For the record @yuhr (I realised this issue is quite old) just had to do that today, I think what you want is: Partial(Info.fields)
Partial(Info.fields)
Sorry, something went wrong.
I know this issue is old but would be great to document this little option at the readme, something like:
You can extract the fields of a runtype to perform extra operations without modifying the original runtype record.
And put that "Partialize" as example.
No branches or pull requests
Is there something like above
Partialize
?The text was updated successfully, but these errors were encountered: