Skip to content

Commit 34812c1

Browse files
authored
Merge pull request #340 from lyra/fix/types/onFormValid
fix(types): onFormValid type definition
2 parents 5f1a187 + 66e3eeb commit 34812c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ declare interface KR {
141141
* Form valid event listener.
142142
* @param callback - Callback
143143
*/
144-
onFormValid: (callback: (FormValidCallBackProps) => void) => Promise<{ KR: KR }>
144+
onFormValid: (
145+
callback: (data: FormValidCallBackProps) => void
146+
) => Promise<{ KR: KR }>
145147
/**
146148
* Form submitted event listener.
147149
* @param callback - Callback

0 commit comments

Comments
 (0)