Update @resource decorator to validate that all union variants are model types, have equivalent key properties, segment name, and parent resource type
Update KeysOf<T> to extract keys correctly from union type
Add an envelope type for response type (like ResourceBody<T>) and ensure that it works correctly with existing emitters. This is intended to wrap the resource type so that traits will mix in to the envelope type and not directly in the resource type
This work will require:
@resource
decorator to validate that all union variants are model types, have equivalent key properties, segment name, and parent resource typeKeysOf<T>
to extract keys correctly from union typeResourceBody<T>
) and ensure that it works correctly with existing emitters. This is intended to wrap the resource type so that traits will mix in to the envelope type and not directly in the resource type