The assertion parts tuple defining expected structure
// Successful parse
const success: ParsedResult<Parts> = {
success: true,
exactMatch: true,
parsedValues: [subject, ...params],
};
// Parse failure
const failure: ParsedResult<Parts> = {
success: false,
};
Union type representing the result of parsing assertion arguments.
This represents either a successful parse (containing validated arguments) or a parse failure (indicating arguments don't match the assertion). Used by
parseValues()
andparseValuesAsync()
methods to communicate whether the assertion can be executed with the given arguments.