diff --git a/mangle.json b/mangle.json new file mode 100644 index 00000000..ce0e9d3e --- /dev/null +++ b/mangle.json @@ -0,0 +1,5 @@ +{ + "mangle": { + "regex": "^_" + } +} diff --git a/typebox/src/typebox.ts b/typebox/src/typebox.ts index d3ad5255..3424ab37 100644 --- a/typebox/src/typebox.ts +++ b/typebox/src/typebox.ts @@ -40,7 +40,7 @@ const parseErrorSchema = ( export const typeboxResolver: Resolver = (schema) => async (values, _, options) => { - const errors = [...Value.Errors(schema, values)]; + const errors = Array.from(Value.Errors(schema, values)); options.shouldUseNativeValidation && validateFieldsNatively({}, options);