© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Defaulting A Schema.Struct to pass excess properties - Effect Community
EC
Effect Community
•
15mo ago
•
2 replies
Dave Meehan
Defaulting A Schema.Struct to pass excess properties
I know that I can specify
onExcessProperties: 'preserve'
onExcessProperties: 'preserve'
to either a
decode
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
.
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Add custom properties to a schema
EC
Effect Community / help-forum
2y ago
Overriding schema class properties
EC
Effect Community / help-forum
13mo ago
Making objects to match schema when using Value Equality, Data.struct, Schema.Data
EC
Effect Community / help-forum
14mo ago
Question about usage of Predicate.struct with optional properties
EC
Effect Community / help-forum
2y ago