Type alias UcModel<T, TSchema>

UcModel<T, TSchema>: TSchema | (UcSchema<T> extends TSchema
    ? UcDataType<T>
    : never)

Data model that can be described by schema.

Either a schema instance, or data class.

Type Parameters

  • T = unknown

    Implied data type.

  • TSchema extends UcSchema<T> = UcSchema<T>

    Schema type.

Generated using TypeDoc