Effect CommunityEC
Effect Community2y ago
9 replies
Jonathan Clem

Deriving a New Schema Type with a Wrapped Field

How do I derive a new type that wraps a single field from the derived-from type? For example I have Schema.Struct({ id: Schema.String, foo: Foo }) and in one case I want Schema.Struct({ id: Schema.String, foo: Schema.parseJson(Foo) })
Was this page helpful?