Suggestion for Shortcuts in v4 for `Struct.pick` and `omit`

I noticed there's mapFields in v4, would shortcuts for Struct.pick(schema.fields) and similar for omit be useful?
we use them all the time on class.
S.Struct({ ...SomeClass.omit("x"), y: S.String })
S.Struct({ ...SomeClass.pick("y"), x: S.Number })
I suppose mapFields though is somewhat a super of that.
SomeClass.mapFields(_ => ({ ...Struct.omit(_, "x"), y: S.String })
SomeClass.mapFields(_ => ({ ...Struct.pick(_, "y"), x: S.Number })
Was this page helpful?