Comments (8)
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.
@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.
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.
Thanks @IceCreamYou — we'll take a look shortly.
from js-client-sdk.
Awesome @IceCreamYou -- I added a few comments to the DT PR.
from js-client-sdk.
The PR was merged yesterday so this issue can be closed 😀
from js-client-sdk.
Thanks @IceCreamYou !
from js-client-sdk.
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.
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)
- Consider providing ES6 builds HOT 5
- Ublock Origin blocks some LaunchDarkly URLs HOT 6
- Event streaming in iOS standalone browser HOT 12
- Experimentation docs reference a version that is unreleased HOT 1
- client already exist error HOT 2
- Safari v12 and v13 error for package versions 3.0.0 and above HOT 3
- SDKs >= 3.0.0 no longer send click or pageview events HOT 1
- Pull only a sub set of flags for a project HOT 1
- Support passing context to the `variation` call? HOT 1
- Add opentelemetry tracing to server calls HOT 2
- Warning logged about omitting identify when client is bootstrapped HOT 4
- Unhandled Exception occurs when there is a network error HOT 5
- LD double initialisation with Strict Mode set to true.
- Bypass "do not track" setting in development environment HOT 1
- How do we retrieve the tags or custom properties using ldclient? HOT 2
- Allow to evaluate specific flags HOT 2
- option to disable logger in browser console HOT 1
- Access to XMLHttpRequest at 'https://events.launchdarkly.com/events/bulk/6374af9a71e138110cdb10cd' from origin 'https://localhost:5001' has been blocked by CORS policy: Request header field request-context is not allowed by Access-Control-Allow-Headers in preflight response. HOT 6
- Unable to load launchdarkly-js-client-sdk/ldclient.es.js using webpack 2 HOT 8
- LaunchDarkly not initializing if cookies are disabled HOT 2
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 js-client-sdk.