Checks if an entry is a valid Criteria constraint.
Holds a single constraint to its operator's contract, pairing the key's prefix with the value type that operator
accepts. Reach for it to validate constraints one at a time, as a form decoder collecting label=value pairs does,
rather than a whole map through isCriteria.
Parameters
value: unknown
The entry value to check
key: string
The entry key to check
Returns boolean
True if key is a constraint key and value is of the type its operator
accepts; false otherwise
Checks if an entry is a valid Criteria constraint.
Holds a single constraint to its operator's contract, pairing the key's prefix with the value type that operator accepts. Reach for it to validate constraints one at a time, as a form decoder collecting
label=valuepairs does, rather than a whole map through isCriteria.