ianstormtaylor / superstruct

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

Retain struct's type in partial and pick helpers #1149

Closed arturmuller closed 10 months ago

arturmuller commented 1 year ago

Resolves #829

dlindenkreuz commented 1 year ago

@ianstormtaylor Are there any blockers? This would be a really useful fix.

kevcao-certik commented 1 year ago

@ianstormtaylor Same here, this would be super useful if there are no issues with the PR. Thanks!

arturmuller commented 10 months ago

@dlindenkreuz @kevcao-certik this will be landing in the next release!

I will be helping Ian with the maintenance of Superstruct from now on, so as soon as I get publish rights on npm you will be able to (finally) use this :)