Open VladymyrPylypchatin opened 1 day ago
It would be helpful to have:
Ideally both schema defined as consts and their types is inferred from the value so you don't need to define interfaces.
And then the mapping itself happens by using keys from the schemas.
And then have a helper function that lets to build objects along the lines of: AriveWebhookEvent.build(sourceObject, maping)
It's hard to define and maintain mapping in integrations.
It would great to have a way to define mappings in a delcaritive way like in example bellow: