© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Defining Property Mapping: Simplifying Transformations for Classes and Structs - Effect Community
EC
Effect Community
•
3y ago
•
6 replies
Patrick Roza
Defining Property Mapping: Simplifying Transformations for Classes and Structs
How to define a property named
a
a
in From to be mapped to
b
b
in To
? Transform seems a bit long winded
. looking for something like propertydescriptor
Especially for class
, but general struct too
.
a sample usecase would be openid claims
, e
.g
https://some/fully/qualified/url/roles
https://some/fully/qualified/url/roles
mapped in To to
roles
roles
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Defining Union Type Schema with Classes
EC
Effect Community / schema
3y ago
Adding Transformations with Classes and Custom Types in Effect Typescript
EC
Effect Community / schema
12mo ago
using Schema.partial with Structs having property signatures
EC
Effect Community / schema
2y ago
Extending Structs with the Extend Combinator: Compatibility with Classes?
EC
Effect Community / schema
2y ago