diff --git a/src/core/Validator.ts b/src/core/Validator.ts index 0604dac9..156874ce 100644 --- a/src/core/Validator.ts +++ b/src/core/Validator.ts @@ -24,7 +24,7 @@ class Validator { return is(Object.keys(this.errors), fields) } - first(field: string | string[]): string | Record | undefined { + first(field: string | string[]): string | undefined { if (Array.isArray(field)) { const fields = this.fields(field) let fd = ''