© 2026 Hedgehog Software, LLC
SchemaGetter.omit()
const MyField = S.Literal('something').pipe( S.encodeTo(S.Never, { decode: SchemaGetter.transformOrFail(() => Effect.succeed('something' as const)), encode: SchemaGetter.omit() }), ) const MyStruct = S.Struct({ other: S.Literal('other'), myField: MyField }) type e = Simplify<typeof MyStruct>['Encoded'] // ^? // type e = { // readonly other: "other"; // readonly myField: never; // }
e
{ readonly other: "other" }