Skip to content

Commit bfb38ec

Browse files
update type signature of getRef
1 parent 23b8497 commit bfb38ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/useForm.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export const useForm = <T extends object>(options: FormOptions<T> = {}) => {
107107
const listener = ref((e: Event) => {
108108
validateWithoutError()
109109
})
110-
const getRef = (nodeRef: FieldNode) => {
110+
const getRef = (nodeRef: FieldNode): void => {
111111
const domNode = getDOMNode(nodeRef)
112112
if (domNode !== null) {
113113
if (validateMode === 'focusout') {

0 commit comments

Comments
 (0)