Skip to content

Commit

Permalink
Merge pull request #237 from joshunger/main
Browse files Browse the repository at this point in the history
Update CardElementChangeEvent type; fixes #121
  • Loading branch information
chrissrogers authored Oct 29, 2024
2 parents 0f55f61 + 5175d36 commit 563c205
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,9 @@ export type CardElementChangeEvent = {
brand: string;
empty: boolean;
focus: boolean;
number: {
number: CardElementState;
expiry: CardElementState;
valid: CardElementState;
};
number: CardElementState;
expiry: CardElementState;
cvv: CardElementState;
};

export type CardElementProps = CardElementOptions & CommonElementProps<CardElementChangeEvent>;
Expand Down

0 comments on commit 563c205

Please sign in to comment.