Skip to content

CommandConstraint ​

A declarative relationship between two or more command inputs.

Signatures ​

ts
type CommandConstraint = { kind: "conflicts" | "requires"; inputs: readonly [ConstraintInput, ConstraintInput]; } | { kind: "exactlyOne" | "atMostOne" | "allOrNone"; inputs: readonly [ConstraintInput, ConstraintInput, ...ConstraintInput[]]; };

See Also ​

Released under the MIT License.