Closed AllanSimoyi closed 6 years ago
I assume you mean for Typescript or something similar. Braintree doesn't use Typescript when developing this library (the braintree-web one is community created, not made by Braintree), so we don't have a type file for it.
If you'd like to provide your own type file for it, you can open a PR on https://github.com/DefinitelyTyped/DefinitelyTyped
+1 for type definitions; it seems the Braintree API docs would be a pretty good place to look for anyone able to start with that.
Perhaps a path forward would be similar to that taken by Stripe, where the community has created the type definitions and this repo would just contain documentation on how to use them.
+1 for type definitions. Many serious financial projects use static type checking and typescript in common to minimise amount of errors in production.
For reference, a definition was published on DefinitelyTyped: https://www.npmjs.com/package/@types/braintree
@smrubin legend, thanks!
Haven't been able to find any typings for Braintree. The only typings i have come across are for braintree-web, none for the server-side library.
Can someone assist regarding this?