The transformer class to use for transforming the resource
The maximum depth for nested resource resolution
The variant method name to use for transformation
const userItem: ItemContract<UserTransformer, 3, 'toObject'> = {
$type: 'item',
transformer: UserTransformer,
maxDepth: 3,
variant: 'toObject'
}
Contract interface for Item instances used in type inference. An Item represents a single resource that will be transformed using the specified transformer class.