Type alias RawAttributes<T>

RawAttributes<T>: {
    [K in AttributeKeys<T>]: T[K] extends Model
        ? RawAttributes<T[K]>
        : T[K] extends ModelCollection<infer M>
            ? RawAttributes<M>[]
            : T[K]
}

Unwrap the model attributes recursively into attributes or array of attributes.

Type Parameters

  • T extends HasAttributes

Generated using TypeDoc