Skip to content

Latest commit

 

History

History
94 lines (52 loc) · 3.86 KB

Entity.EntityTypesContext.md

File metadata and controls

94 lines (52 loc) · 3.86 KB

Powership / Modules / Entity / EntityTypesContext

Interface: EntityTypesContext<InputDef, Indexes>

Entity.EntityTypesContext

Type parameters

Name
InputDef
Indexes

Table of contents

Properties

Properties

document

document: IsKnown<InputDef> extends 1 ? [InputDef] extends [ObjectDefinitionInput] ? InputDef : {} : {} extends D ? [D] extends [object] ? InferObjectDefinition<D> : never : {} extends D ? EntityDocument<D> : {}

Defined in

packages/entity/src/EntityInterfaces/Context.ts:60


documentBase

documentBase: IsKnown<InputDef> extends 1 ? [InputDef] extends [ObjectDefinitionInput] ? InputDef : {} : {} extends D ? [D] extends [object] ? InferObjectDefinition<D> : never : {}

Defined in

packages/entity/src/EntityInterfaces/Context.ts:46


documentCreationInput

documentCreationInput: IsKnown<InputDef> extends 1 ? [InputDef] extends [ObjectDefinitionInput] ? InputDef : {} : {} extends D ? [D] extends [object] ? InferObjectDefinition<D> : never : {} extends D ? EntityDocumentInput<D> : {}

Defined in

packages/entity/src/EntityInterfaces/Context.ts:53


indexes

indexes: IsKnown<Indexes> extends 1 ? Indexes extends readonly DocumentIndexItem<string>[] | DocumentIndexItem<string>[] ? Indexes : [] : []

Defined in

packages/entity/src/EntityInterfaces/Context.ts:23


options

options: EntityOptions<IsKnown<InputDef> extends 1 ? [InputDef] extends [ObjectDefinitionInput] ? InputDef : {} : {}, IsKnown<Indexes> extends 1 ? Indexes extends readonly DocumentIndexItem<string>[] | DocumentIndexItem<string>[] ? Indexes : [] : []>

Defined in

packages/entity/src/EntityInterfaces/Context.ts:41


originDefinition

originDefinition: IsKnown<InputDef> extends 1 ? [InputDef] extends [ObjectDefinitionInput] ? InputDef : {} : {}

Defined in

packages/entity/src/EntityInterfaces/Context.ts:14


outputDefinition

outputDefinition: IsKnown<InputDef> extends 1 ? [InputDef] extends [ObjectDefinitionInput] ? InputDef : {} : {} extends D ? D extends object ? MergeFlat<Omit<EntityDocumentBaseDef<false>, keyof D>, D, BuiltIn, undefined> : never : {}

Defined in

packages/entity/src/EntityInterfaces/Context.ts:34