Questions tagged [tsd]

TSD is a package manager to search and install TypeScript definition files directly from the community driven DefinitelyTyped repository.

105 questions
1
vote
0 answers

bluebird promise.js unexpected token

My pc crashed while "task serve" was building angular solution. After restart this is the following error that occurred. This error shows on all angular projects on my pc. [14:33:23] Using gulpfile c:\...\gulpfile.js [14:33:23] Starting…
Viesturs
  • 71
  • 7
1
vote
0 answers

TypeScript definitions for various libraries and different versions - Typings, DefinitelyTyped

Both DefinitelyTyped and typings allow us to use existing JS libraries along with their TypeScript bindings (definitions, .d.ts) provided by the community. My question is - does any of these platform provide a possibility to use a binding for a…
ducin
  • 25,621
  • 41
  • 157
  • 256
1
vote
1 answer

TypeScript "tsd install jquery" - cannot find name "document"

I'm trying to import jquery into my TypeScript project. To do this I ran tsd install jquery --save which created me a jquery.d.ts file, and which added /// to my tsd.d.ts file. When adding import * as $ from…
Andy
  • 7,646
  • 8
  • 46
  • 69
1
vote
0 answers

Typescript tsd definition for cordova-plugin-geolocation

I'm migrating my angular javascript code to typescript. Therefor I would like to access the definition of $cordovaGeolocation service, from the cordova-plugin-geolocation plugin, while I'm editing my code. I didn't find any matching services in the…
David Dal Busco
  • 7,975
  • 15
  • 55
  • 96
1
vote
1 answer

how do I use typings client side effectively?

I'm trying to use a library client side with TypeScript. (Zepto, a lightweight JQuery alternative) This is for old browsers, so I don't want to use import and fancy ES6 syntax, and ideally avoid require/commonJS etc. So I have simply added it to…
dcsan
  • 11,333
  • 15
  • 77
  • 118
1
vote
1 answer

angular2 is not in DefinitelyTyped repo?

Maybe my understanding of what DefinitelyTyped contains is wrong.. but I would imagine that I should be able to find the Angular2 typings in this repo, no? - I.e. 'tsd install angular2' doesn't find anything, and I can't find it in the repo anymore,…
Efrain
  • 3,248
  • 4
  • 34
  • 61
1
vote
0 answers

TypeScript Type file not working

I started to use TypeScript recently. Now I would like to use this linq.js library. Even though my problem may not be specific to this library. I installed the library with jspm install npm:linq I use this to import this library import * as…
Morio
  • 8,463
  • 5
  • 25
  • 29
1
vote
2 answers

angular js 2 basic setup issues

I have PHP and JavaScript background and never worked with nodejs or angular js with full hand , just a basic understanding of these js. I started to learn angular js 2 but find very difficulties to set up first example. node v 5.6.0 and npm…
xkeshav
  • 53,360
  • 44
  • 177
  • 245
1
vote
1 answer

How to load an external typescript module that is defined as an internal module (tsd)

I am trying to load the nouislider module in my project: Angular 2 beta-0, Typescript 1.7 using SystemJs 0.19.4. I have it working with a work-around: by changing the .d.ts file tsd has installed for me. I would like to know what, if anything, I…
Lodewijk Bogaards
  • 19,777
  • 3
  • 28
  • 52
1
vote
1 answer

How to use CSSNext in Typescript and avoid pesky "error TS2349" the Typescript - way

Sorry if this Question has bean ask and ask. But I keep hitting this pesky "error TS2349", every time I want to use an external Node Package in my Typescript Project, what dose not yet have a TypeScript Definition :( Here is my Current Setup node -v…
1
vote
1 answer

Lodash Typescript definition errors with gulp tsd

My company recently updated to latest typescript definitions related to lodash library from DefinitelyTyped using tsd and suddenly ran into these typing error. If anyone could point out or help in this regard, we would be very thankful... We are…
Piyush Chauhan
  • 1,523
  • 2
  • 24
  • 37
1
vote
2 answers

Angular2 and Typescript Definitions

I am using the typescript definitions installed with tsd to work with Angular2's preview. Recently they have released 2.0.0-alpha.40 and now my routing doesn't work anymore. I have taken a look at the examples on angular's site and they are…
Werner Swart
  • 371
  • 2
  • 4
  • 13
1
vote
1 answer

Add a custom .d.ts file into my project

I'm using StamplayAPI Javascript, but there is no set type for this library. So I created a type .d.ts for this library and did a pull request. But I would not want to wait for the acceptance of the pull request to start using my type. How can I…
ridermansb
  • 10,779
  • 24
  • 115
  • 226
1
vote
0 answers

Issue installing TSD

Hey guy's I'm getting the following error code and didn't know if anyone had some solutions. I'm not sure if it has something to do with my proxy and if so where to find the config file to correct the error. Not sure why I'm getting the unexpected…
sinisterrook
  • 354
  • 1
  • 3
  • 14
1
vote
1 answer

Duplicating Definitions in bower.json and tsd.json

I am using bower to manage my third-party JavaScript library dependencies for a project. For example, I am using AngularJS, thus I've had to add a dependency on this in bower.json. I am writing my library in TypeScript. Therefore, it is necessary to…
jwa
  • 3,239
  • 2
  • 23
  • 54