Effect CommunityEC
Effect Community16mo ago
9 replies
nounderline

Making Properties Mutable in a Schema for Nested Object Modification

Schema.Type returns a typed object with all properties readonly. Is there a way to make the properties mutable in typed object when I define a schema?
Use case: structuredClone an object typed as Effect schema to modify its nested properties in a loop.
Was this page helpful?