@altostra/core
Version:
Core library for shared types and logic
15 lines (14 loc) • 662 B
TypeScript
import type { TypeValidation } from '@altostra/type-validations';
import type { LogicalId } from "../../LogicalId";
import type { FindInMap } from "../FindInMap";
import type { Ref } from "../Ref";
import type { And } from "./And";
import type { Equals } from "./Equals";
import type { Not } from "./Not";
import type { Or } from "./Or";
export declare type ConditionFunction = And | Equals | Not | Or;
export declare type Condition = ConditionFunction | FindInMap | Ref | {
Condition: LogicalId;
};
export declare const isConditionFunctionValidation: TypeValidation<ConditionFunction>;
export declare const isConditionValidation: TypeValidation<Condition>;