Skip to content

Commit ee476a0

Browse files
author
JB AUBREE
committed
docs: update README
1 parent e9a15df commit ee476a0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ const {
7373
errorCount,
7474
clearErrors,
7575
getErrorMessage,
76+
focusFirstErroredInput,
7677
} = useFormValidation(schema, form)
7778

7879
// Submit your form

src/yup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { ObjectSchema, ValidationError as YupError } from 'yup'
22
import type { FieldErrors, Form } from './types'
33
import { isNonNullObject } from './utils'
44

5-
export function isYupSchema<S extends object>(schema: unknown): schema is ObjectSchema<S> {
5+
export function isYupSchema<F extends object>(schema: unknown): schema is ObjectSchema<F> {
66
return isNonNullObject(schema)
77
&& 'validate' in schema
88
&& '__isYupSchema__' in schema

0 commit comments

Comments
 (0)