Effect CommunityEC
Effect Community12mo ago
2 replies
Dave Meehan

Defaulting A Schema.Struct to pass excess properties

I know that I can specify onExcessProperties: 'preserve' to either a decode... method, or as an override, but what if I want to make a Struct always pass excess properties?

I'm not concerned about these properties being exposed in the type (how could they anyway) but just want them passed along rather than stripped.
Was this page helpful?