Skip to content

Commit 5fdfe01

Browse files
committed
fix: 🐛 remove object return types from first function
1 parent 21111a4 commit 5fdfe01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/Validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Validator {
2424
return is(Object.keys(this.errors), fields)
2525
}
2626

27-
first(field: string | string[]): string | Record<string, any> | undefined {
27+
first(field: string | string[]): string | undefined {
2828
if (Array.isArray(field)) {
2929
const fields = this.fields(field)
3030
let fd = ''

0 commit comments

Comments
 (0)