braintree_node icon indicating copy to clipboard operation
braintree_node copied to clipboard

Need better support for TypeScript

Open thom801 opened this issue 5 years ago • 6 comments

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!

thom801 avatar Oct 15 '20 20:10 thom801

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.

crookedneighbor avatar Oct 15 '20 20:10 crookedneighbor

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

thom801 avatar Oct 15 '20 20:10 thom801

Struggling with that too.

kirillgroshkov avatar Jan 26 '21 16:01 kirillgroshkov

for internal notekeeping, ticket 615

hollabaq86 avatar May 03 '22 19:05 hollabaq86

Would love to see a proper TS version too!

r0oto0r avatar May 04 '22 11:05 r0oto0r

Competitor product is full-on TypeScript. Just saying.

kirillgroshkov avatar May 11 '22 12:05 kirillgroshkov