braintree / braintree_node

Braintree Node.js library
https://developer.paypal.com/braintree/docs/start/overview
MIT License
334 stars 104 forks source link

Need better support for TypeScript #176

Open thom801 opened 3 years ago

thom801 commented 3 years ago

I have sifted through issues in this repo regarding TypeScript type support. Looking into it I've found that the Braintree team has commented on each saying "We don't support or maintain @types/braintree. As a developer working in a TypeScript environment, I can tell you that this is causing us major issues in terms of working with Braintree. The type definitions that exist so far are extremely spotty and flawed which is obviously problematic for any TypeScript team.

I do realize that @types/braintree was started and created by the community. However, for a company that is trying to support Node.js, Typescript support seems like something that Braintree really needs to do. I know this is not the best avenue to raise this issue, but I wanted to at least ask the dev team directly why they are taking the stance of not maintaining types when it is sorely needed and is causing big headaches for TS developers.

So what I really want to ask: Does Braintree's dev team plan to support TypeScript? If so, when can we expect that?

Thanks in advance!

crookedneighbor commented 3 years ago

We do plan to support it, we've already moved over many of our client side JS modules to typescript. Right now we're focussing on developing the next major version of the web sdk, written in Typescript. After that, we can focus on the server side node sdk.

I do not have a solid timeline right now for that.

thom801 commented 3 years ago

Ok thank you. Not the answer I had hoped for but I appreciate you responding @crookedneighbor. Good luck with the TS refactor.

kirillgroshkov commented 3 years ago

Struggling with that too.

hollabaq86 commented 2 years ago

for internal notekeeping, ticket 615

r0oto0r commented 2 years ago

Would love to see a proper TS version too!

kirillgroshkov commented 2 years ago

Competitor product is full-on TypeScript. Just saying.