Type Aliases Array Field Definition Type Parameters Attribute Value Attribute Value: any
Basic Field Definition Type Parameters Booted Array Field Definition Type Parameters Booted Basic Field Definition Type Parameters Booted Field Definition Type Parameters Booted Field Definition Base Booted Field Definition Base< T > : T & { required: boolean }
Type Parameters Booted Fields Definition Type Parameters Booted Object Field Definition Type Parameters Engine Attribute Leaf Value Engine Attribute Leaf Value: string | number | boolean | null | Date
Engine Attribute Update Operation Engine Documents Collection Field Definition Type Parameters Field Definition Base Field Definition Base< T > : T & { required?: boolean }
Type Parameters Fields Definition Type Parameters Get Array Fields Get
Array
Fields
< F > : { [ K in keyof F ] : F [ K ] extends { type
: typeof Array } ? K : never } [ keyof F ] Type Parameters Get Defined Fields Get Defined Fields< F > : { [ K in keyof F ] : F [ K ] extends string | { type: string } ? K : F [ K ] extends Record < string , string > ? K : never } [ keyof F ]
Type Parameters Get Field Type Type Parameters Get Fields Definition Get Fields Definition< D > : D extends { fields: infer F } ? F : {}
Type Parameters Get Required Fields Get Required Fields< F > : { [ K in keyof F ] : F [ K ] extends { required: true } ? K : never } [ keyof F ]
Type Parameters Get Timestamps Definition Get Timestamps Definition< D > : D extends { timestamps: infer T } ? T : true
Type Parameters Magic Attribute Properties Type Parameters Magic Attribute Value Type Parameters Magic Attributes Type Parameters Magic Timestamp Attributes Magic
Timestamp
Attributes
< T > : T extends false ? {} : T extends typeof CreatedAt [] ? { createdAt
: Date } : T extends typeof UpdatedAt [] ? { updatedAt
: Date } : { createdAt
: Date ; updatedAt
: Date } Type Parameters Model Cast Attribute Options Model
Cast
Attribute
Options
: { definition
?: BootedFieldDefinition ; field
?: string ; malformedAttributes
?: Record < string , string [] > } Type declaration Optional field?: string Optional malformed Attributes?: Record < string , string [] > Model Clone Options Model
Clone
Options
: Partial < { clean
: boolean ; clones
: WeakMap < Model , Model > ; constructors
: WeakMap < typeof Model , typeof Model > | [ typeof Model , typeof Model ] [] } > Model Constructor Model
Constructor
< T > : Constructor < T > & typeof Model Type Parameters Model Listener Model Listener< T > : ( ( model: T ) => unknown )
Type Parameters Type declaration Parameters Returns unknown Nested Magic Attributes Type Parameters Object Field Definition Type Parameters Relation Clone Options Relation
Clone
Options
: Partial < { clones
: WeakMap < Model , Model > ; constructors
: WeakMap < typeof Model , typeof Model > } > Relation Constructor Relation
Constructor
< T > : Constructor < T > & typeof Relation Type Parameters Relation Delete Strategy Relation Delete Strategy: null | "cascade"
Resolve Field Type Resolve
Field
Type
< T > : T extends typeof Number ? number : T extends typeof String ? string : T extends typeof Boolean ? boolean : T extends typeof Date ? Date : T extends typeof Key ? Key : T extends typeof Any ? any : never Type Parameters Schema Definition Type Parameters
import global methods instead.