type · Browser and Node
Constraint
@toip-tools/mandatesView sourceimport { type Constraint } from "@toip-tools/mandates";
Declaration
type Constraint = { attr: string; when?: string[] } & (
| { anyOf: string[] }
| { noneOf: string[] }
| { within: string[] }
| { is: string | number | boolean }
| { max: Units | number }
| { min: Units | number }
| { budget: Units; period: Period }
);