toip.tools

type · Browser and Node

Constraint

@toip-tools/mandatesView source
TypeScriptImport
import { type Constraint } from "@toip-tools/mandates";

Declaration

TypeScripttype
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 }
);