代表條件可以是多種類型之一。系統只會處理第一個定義的欄位。
簽名:
export interface OneOfCondition
屬性
屬性 | 類型 | 說明 |
---|---|---|
andCondition | AndCondition | 將這項條件設為 AND 條件。 |
不正確 | <字串>,永不記錄> | 將此條件設為常數 false。 |
orCondition | OrCondition | 將這項條件設為 OR 條件。 |
百分比 | PercentCondition | 將這項條件設為百分比條件。 |
是 | <字串>,永不記錄> | 將這項條件設為常數。 |
OneOfCondition.andCondition
將這項條件設為 AND 條件。
簽名:
andCondition?: AndCondition;
OneOfCondition.false
將此條件設為常數 false。
簽名:
false?: Record<string, never>;
OneOfCondition.orCondition
將這項條件設為 OR 條件。
簽名:
orCondition?: OrCondition;
OneOfCondition.percent
將這項條件設為百分比條件。
簽名:
percent?: PercentCondition;
OneOfCondition.true
將這項條件設為常數。
簽名:
true?: Record<string, never>;