Effect CommunityEC
Effect Community2y ago
4 replies
akatov

Creating a Schema for Omitting Type Keys with Schematics

Is there a way to create a schema representing the type type C = Omit<A, keyof B> ?
S.keyof(BSchema) returns a schema representing a union of the keys of BSchema, but ASchema.pipe(S.omit(S.keyof(BSchema))) doesn't work, because S.omit expects individual string keys!
Was this page helpful?