GithubHelp home page GithubHelp logo

Typescript Typings about js-client-sdk HOT 8 CLOSED

launchdarkly avatar launchdarkly commented on September 4, 2024
Typescript Typings

from js-client-sdk.

Comments (8)

jkodumal avatar jkodumal commented on September 4, 2024 3

BTW, when that gets merged we will be happy to take over maintaining the typings when our library interface is updated.

from js-client-sdk.

dlau avatar dlau commented on September 4, 2024 1

@ISkomorokh thanks for the report. Please see this PR for an update to our typescript definitions #14 .

We will publish an update to the npm module shortly.

from js-client-sdk.

IceCreamYou avatar IceCreamYou commented on September 4, 2024

I submitted typings to DefinitelyTyped: DefinitelyTyped/DefinitelyTyped#11916

The last typings I submitted to DefinitelyTyped were merged the next business day so I am optimistic that this issue can be closed out shortly.

That said, it would be great to have LaunchDarkly team members review the typings to confirm that they are correct and contribute changes when the library's interface changes 😀

from js-client-sdk.

apucacao avatar apucacao commented on September 4, 2024

Thanks @IceCreamYou — we'll take a look shortly.

from js-client-sdk.

jkodumal avatar jkodumal commented on September 4, 2024

Awesome @IceCreamYou -- I added a few comments to the DT PR.

from js-client-sdk.

IceCreamYou avatar IceCreamYou commented on September 4, 2024

The PR was merged yesterday so this issue can be closed 😀

from js-client-sdk.

jkodumal avatar jkodumal commented on September 4, 2024

Thanks @IceCreamYou !

from js-client-sdk.

ISkomorokh avatar ISkomorokh commented on September 4, 2024

Hi guys! I'm trying to use ldclient-js in TypeScript > 2.0 project and it would be great to have working typings. At the moment, VS 2017 and VS Code are both complaining that on the import statement. The code works after build, but I can't use intellisense.
image

I believe this is because of namespace or no global exports or no module declaration.
https://www.typescriptlang.org/docs/handbook/modules.html#ambient-modules

package.json

"dependencies": {
...
    "ldclient-js": "^1.1.10",
  ...
},
  "peerDependencies": {},
  "devDependencies": {
...  
  "types/ldclient-js": "^1.1.2",
...
  }

Thanks!

from js-client-sdk.

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.