ianstormtaylor / superstruct

A simple and composable way to validate data in JavaScript (and TypeScript).
https://docs.superstructjs.org
MIT License
7.01k stars 224 forks source link

add override utility #1177

Open ytw0728 opened 1 year ago

ytw0728 commented 1 year ago

Hello guys! Always thanks to you guys for providing this awesome tool.

I'm not sure that it is okay to suggest my idea through this way, so if I can't, I will close this thing and reopen this as an issue instead. Please let me know :)

I want to suggest a utility to override a target schema. This utility is similar with assign, but with this I can get a type hint about the target schema.