A record of resource data types. This is what every transformer must return from their transformation methods.
class UserResource { toObject(): ResourceData { return { id: this.user.id, name: this.user.name, posts: PostTransformer.transform(this.user.posts) } }} Copy
class UserResource { toObject(): ResourceData { return { id: this.user.id, name: this.user.name, posts: PostTransformer.transform(this.user.posts) } }}
A record of resource data types. This is what every transformer must return from their transformation methods.