UNPKG

@vitruvius-labs/ts-predicate

Version:
10 lines (9 loc) 308 B
import { ValidationError } from "../type-assertion/utils/validation-error.mjs"; import { toError } from "../helper/to-error.mjs"; /** @internal */ function rethrowUnexpectedError(error) { if (!(error instanceof ValidationError)) { throw toError(error); } } export { rethrowUnexpectedError };