UNPKG

@orchestrator/core

Version:
31 lines (30 loc) 577 B
/** * Will set type of property to `null | undefined`. * * Useful for cases when you have to explicitly exclude * specific property from type. * * **Example:** * ```ts * class A { * @Option() * prop1: string; * @Option() * prop2: string; * @OptionNotPresent() * prop3?: null | undefined; // This prop should be excluded! * } * * class B { * @Option() * prop1: string; * @Option() * prop2: string; * @Option() * prop3: string; * } * * type AorB = A | B; * ``` */ export declare function OptionNotPresent(): PropertyDecorator;