The transformer class to use for transforming each resource
The maximum depth for nested resource resolution
The variant method name to use for transformation
const usersCollection: CollectionContract<UserTransformer, 3, 'toObject'> = {
$type: 'collection',
transformer: UserTransformer,
maxDepth: 3,
variant: 'toObject'
}
Contract interface for Collection instances used in type inference. A Collection represents an array of resources that will be transformed using the specified transformer class.