Type Alias ModelToObject<T>

ModelToObject: [T] extends [(infer U)[]]
    ? ModelToObject<U>[]
    : [Models.SomeType] extends [T] ? JSONOutput.SomeType : _ModelToObject<T>

Describes the mapping from Model types to the corresponding JSON output type.

Type Parameters

  • T