Powership / Modules / Entity / EntityTypesContext
Entity.EntityTypesContext
Name |
---|
InputDef |
Indexes |
• document: IsKnown
<InputDef
> extends 1
? [InputDef
] extends [ObjectDefinitionInput
] ? InputDef
: {} : {} extends D
? [D
] extends [object
] ? InferObjectDefinition
<D
> : never
: {} extends D
? EntityDocument
<D
> : {}
packages/entity/src/EntityInterfaces/Context.ts:60
• documentBase: IsKnown
<InputDef
> extends 1
? [InputDef
] extends [ObjectDefinitionInput
] ? InputDef
: {} : {} extends D
? [D
] extends [object
] ? InferObjectDefinition
<D
> : never
: {}
packages/entity/src/EntityInterfaces/Context.ts:46
• documentCreationInput: IsKnown
<InputDef
> extends 1
? [InputDef
] extends [ObjectDefinitionInput
] ? InputDef
: {} : {} extends D
? [D
] extends [object
] ? InferObjectDefinition
<D
> : never
: {} extends D
? EntityDocumentInput
<D
> : {}
packages/entity/src/EntityInterfaces/Context.ts:53
• indexes: IsKnown
<Indexes
> extends 1
? Indexes
extends readonly DocumentIndexItem
<string
>[] | DocumentIndexItem
<string
>[] ? Indexes
: [] : []
packages/entity/src/EntityInterfaces/Context.ts:23
• options: EntityOptions
<IsKnown
<InputDef
> extends 1
? [InputDef
] extends [ObjectDefinitionInput
] ? InputDef
: {} : {}, IsKnown
<Indexes
> extends 1
? Indexes
extends readonly DocumentIndexItem
<string
>[] | DocumentIndexItem
<string
>[] ? Indexes
: [] : []>
packages/entity/src/EntityInterfaces/Context.ts:41
• originDefinition: IsKnown
<InputDef
> extends 1
? [InputDef
] extends [ObjectDefinitionInput
] ? InputDef
: {} : {}
packages/entity/src/EntityInterfaces/Context.ts:14
• outputDefinition: IsKnown
<InputDef
> extends 1
? [InputDef
] extends [ObjectDefinitionInput
] ? InputDef
: {} : {} extends D
? D
extends object
? MergeFlat
<Omit
<EntityDocumentBaseDef
<false
>, keyof D
>, D
, BuiltIn
, undefined
> : never
: {}