Skip to content

Commit

Permalink
fix: 🐛 remove object return types from first function
Browse files Browse the repository at this point in the history
  • Loading branch information
chantouchsek committed Sep 27, 2023
1 parent 21111a4 commit 5fdfe01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Validator {
return is(Object.keys(this.errors), fields)
}

first(field: string | string[]): string | Record<string, any> | undefined {
first(field: string | string[]): string | undefined {
if (Array.isArray(field)) {
const fields = this.fields(field)
let fd = ''
Expand Down

0 comments on commit 5fdfe01

Please sign in to comment.