Skip to content

Commit

Permalink
add type definitions for focus and blur callback (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinalong-stripe authored Dec 2, 2022
1 parent 0dccdb8 commit 478e70a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ export interface ElementProps {
/**
* Triggered when the Element loses focus.
*/
onBlur?: () => any;
onBlur?: (event: {elementType: stripeJs.StripeElementType}) => any;

/**
* Triggered when the Element receives focus.
*/
onFocus?: () => any;
onFocus?: (event: {elementType: stripeJs.StripeElementType}) => any;
}

export interface AuBankAccountElementProps extends ElementProps {
Expand Down

0 comments on commit 478e70a

Please sign in to comment.