Comments (6)
I just published type definitions https://www.npmjs.com/package/@types/braintree-web-drop-in
from braintree-web-drop-in.
This isn't something we have planned at the moment, but we'll update this issue if that changes!
from braintree-web-drop-in.
@grippstick we don't maintain the type definitions for the core sdk or drop-in.
The next major version of each is being written in Typescript, so these type definition files will be unnecessary then.
from braintree-web-drop-in.
Got it, makes sense since the main Braintree module doesn't have a first-party type definition (unless @types/braintree-web is maintained by Braintree).
Went ahead and submitted a separate ticket to DefinitelyTyped: DefinitelyTyped/DefinitelyTyped#16474
from braintree-web-drop-in.
I am trying to use @types/braintree-web-drop-in, but I am finding an error. Specifically it seems that the drop in is conflicting with braintree-web.
It says "Subsequent variable declarations must have the same type. Variable 'braintree' must be of type 'typeof import("../node_modules/@types/braintree-web/index")', but here has type '{ dropin:{create(options:Options, callback:{error:object,dropin:Dropin) => void):void; create(options:Options):Promise;};}'."
The project is an empty project where I ran the npm install and thats it. The error is coming directly from the definition file, so i think it has to be in there somewhere.
I am going to work around it by moving removing references to outside of the drop-in and replacing them with any, which sort of defeats the purpose.
I am just checking in to make sure I wasn't missing something, because I really want to use this definition.
from braintree-web-drop-in.
@crookedneighbor Thanks for the info. For now, I just marked a bunch of things as "any" and I am making progress.
I knew you all didn't maintain it. I was hoping @saoudrizwan noticed my comment and pointed me in the right direction.
You know the standard internet protocol of relying on the help of strangers :)
from braintree-web-drop-in.
Related Issues (20)
- > "https://api-m.paypal.com" HOT 1
- hoISeoI373mTmmqZxBUwNIeIGfEB4JQH5kNWfVB6tWxeiIUkTkw0EnHdwBJWRBOy HOT 1
- [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. HOT 2
- Apple Pay svg size iPhone 15 series / macOS Sonoma HOT 1
- updated CSP configuration HOT 4
- DropUI Fails to render with ApplePay on newer iPhones HOT 3
- Apple Pay UI goes disappears in a second HOT 1
- data-collector.min.js doesn't loaded HOT 3
- Display new card input form automatically when drop-in is initialized with customerId HOT 1
- Email from Braintree re Updates to required 3D Secure data fields HOT 12
- Initial render events randomly triggered HOT 1
- AuthenticationInsight seem not supported and impossible HOT 1
- Device Data is never returned HOT 2
- threeDSecure - Always Errors HOT 1
- REACT : instance.updateConfiguration() not updating the instance when using dropinInstance as a MutableRefObject
- CardholerName prefill HOT 2
- Release with updated braintree-web? HOT 1
- Pay Later
- Duplicate iframe elements
- 400 status code is returned from analytics API
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from braintree-web-drop-in.