Skip to content

Fix incorrect type definition for onTaxCodeSelect #150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 22, 2025

Conversation

ymlu-stripe
Copy link

The type of the onTaxCodeSelect prop was added incorrectly in #146.

The approved type from API Review is (taxCode: string) => void.

Copy link
Contributor

@jorgea-stripe jorgea-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -692,7 +692,7 @@ export const ConnectProductTaxCodeSelector = ({
disabled,
initialTaxCode
}: {
onTaxCodeSelect?: ({taxCode}: {taxCode: string}) => void;
onTaxCodeSelect?: (taxCode: string) => void;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified this matches the API review

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ymlu-stripe
Copy link
Author

ymlu-stripe commented Apr 17, 2025

@jorgea-stripe Thanks for the review! I'm waiting for the next preview release from connect-js to bump its version so the build would pass

@ymlu-stripe ymlu-stripe merged commit 9a30fa2 into preview Apr 22, 2025
2 checks passed
@ymlu-stripe ymlu-stripe deleted the ymlu/fix-incorrect-type-def branch April 22, 2025 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants