Giter Site home page Giter Site logo

Comments (6)

saoudrizwan avatar saoudrizwan commented on June 19, 2024 4

I just published type definitions https://www.npmjs.com/package/@types/braintree-web-drop-in

from braintree-web-drop-in.

lilaconlee avatar lilaconlee commented on June 19, 2024 3

This isn't something we have planned at the moment, but we'll update this issue if that changes!

from braintree-web-drop-in.

crookedneighbor avatar crookedneighbor commented on June 19, 2024 2

@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.

buu700 avatar buu700 commented on June 19, 2024

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.

grippstick avatar grippstick commented on June 19, 2024

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.

grippstick avatar grippstick commented on June 19, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.