Skip to content
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

Introduce native TypeScript support #194

Open
robbieaverill opened this issue Sep 23, 2021 · 0 comments
Open

Introduce native TypeScript support #194

robbieaverill opened this issue Sep 23, 2021 · 0 comments

Comments

@robbieaverill
Copy link
Contributor

We have TypeScript support now using the third-party DefinitelyTyped types repository, see #46.

We haven't really ironed out how we will handle type definition changes where they change in our API, given that our API versioning is date based and Commerce.js is currently using semantic versioning. One idea here is to switch to date based versioning in Commerce.js as well.

In Commerce.js v3 we would like TypeScript to be natively supported, which would allow us greater flexibility to couple Chec API and Commerce.js versions, and control over when and how the types need to change without third-party DT maintainer approval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant