// Choice phrase literal
type Choice = ['to be', 'to equal'];
// Usage in assertion
createAssertion(
[z.any(), ['to be', 'to equal'], z.any()],
(subject, expected) => subject === expected,
);
// Both work:
// expect(value, 'to be', expected) ✓
// expect(value, 'to equal', expected) ✓
Type representing a choice between multiple phrase literals.
This allows an assertion to accept any of several equivalent phrase options, providing flexibility in natural language expression. The type is a non-empty readonly tuple of strings.