UNPKG

@redocly/respect-core

Version:
8 lines 415 B
import { bold } from 'colorette'; export function errorMessageMatcher(hint, // assertion returned from call to matcherHint generic, // condition which correct value must fulfill specific // incorrect value returned from call to printWithType ) { return `${hint}\n\n${bold('Matcher error')}: ${generic}${typeof specific === 'string' ? `\n\n${specific}` : ''}`; } //# sourceMappingURL=error-message-matcher.js.map