Interface Condition<This>

Condition.

interface Condition<This> {
    condition: ConditionFunction<This> | DynamicConditionFunction<This, any>;
    id: number;
    metadata: DecoratorMetadataObject;
    name: string;
    propertyName: keyof This;
    relation: undefined | PrimitiveTypeProperty<This> | RelationTypeProperty<This, any>;
    type: symbol;
}

Type Parameters

  • This

Hierarchy

  • PropertyMetaDescriptor<This>
    • Condition

Properties

Function to control the flow of execution of the parser/writter.

id: number

Unique ID

metadata: DecoratorMetadataObject

Metadata object to which this decorator is applied.

name: string

Name of the decorator.

propertyName: keyof This

Property name of the object the decorator is applied.

relation: undefined | PrimitiveTypeProperty<This> | RelationTypeProperty<This, any>

Relation to set if the condition pass.

type: symbol

Type symbol