We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e076583 commit 0030557Copy full SHA for 0030557
src/makeError.ts
@@ -7,6 +7,7 @@ export default function makeError(
7
input: any
8
): TypeError | null | undefined {
9
const validation = new Validation(input)
10
- validation.errors = Array.from(expected.errors(validation, [], input))
+ for (const error of expected.errors(validation, [], input))
11
+ validation.errors.push(error)
12
return makeTypeError(validation)
13
}
0 commit comments