Skip to content

Commit 478e70a

Browse files
add type definitions for focus and blur callback (#356)
1 parent 0dccdb8 commit 478e70a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ export interface ElementProps {
1616
/**
1717
* Triggered when the Element loses focus.
1818
*/
19-
onBlur?: () => any;
19+
onBlur?: (event: {elementType: stripeJs.StripeElementType}) => any;
2020

2121
/**
2222
* Triggered when the Element receives focus.
2323
*/
24-
onFocus?: () => any;
24+
onFocus?: (event: {elementType: stripeJs.StripeElementType}) => any;
2525
}
2626

2727
export interface AuBankAccountElementProps extends ElementProps {

0 commit comments

Comments
 (0)