TSD is a package manager to search and install TypeScript definition files directly from the community driven DefinitelyTyped repository.
Questions tagged [tsd]
105 questions
0
votes
2 answers
Gulp and typescript : node.d.ts doesn't compile
I currently have a problem with typescript. I am trying to use follow a simple tutorial (http://blog.edenmsg.com/angular2-typescript-gulp-and-expressjs/) about constructing a server with express.
So I followed the inscructions and used tsd to…

Licia
- 348
- 1
- 4
- 17
0
votes
1 answer
Install angularjs2 in visual studio 2015 for web
i tried this tutorial http://www.codeproject.com/Tips/1026938/AngularJS-Getting-Started-with-Visual-Studio but when i do:
tsd query angular2 es6-promise rx rx-lite --action install
he not recognise sadd internal external batch

Fabio Santos
- 253
- 1
- 4
- 15
0
votes
1 answer
Restangular with Typescript confusing when 'restangularized' response object
I am using Angular 1.5.x with TypeScript. For accessing a remote API I use restangular. As a summary this is my scenario:
My API has the following resource http://localhost:53384/api/timezones. Sending a request with the verb GET to that url returns…

diegosasw
- 13,734
- 16
- 95
- 159
0
votes
1 answer
Angular2 tsd missing from github
Last two days I've tried to install the typescript definition file for angular2 and it results in an empty result in the terminal. Then the link for the github project is also missing…

Spencer Bigum
- 1,811
- 3
- 17
- 28
0
votes
1 answer
TypeScript - Error calling jQuery getJSON() function
I am using TypeScript 1.7.5 and the latest jQuery type definition. The following call to $.getJSON() fails with "error TS2346: Supplied parameters do not match any signature of call target"
let url: string = api + '/orgs/' + orgname +…

Naresh
- 23,937
- 33
- 132
- 204
0
votes
1 answer
How to resolve Typescript external dependencies with mocha and node
I've got the following files;
MyClass.ts
///
export class MyClass {
d: Phaser.Sprite;
constructor() {
this.d = new Phaser.Sprite(new Phaser.Game, 10, 10);
}
…

Stafford Williams
- 9,696
- 8
- 50
- 101
0
votes
1 answer
Using Parse with Angular2 (TypeScript)
(Yes, I know angular2 is beta, but I'm just trying it out)
I've followed the angular2 quickstart here: https://angular.io/docs/js/latest/quickstart.html
And that's working fine. Now I want to try to use it with Parse, so I found out tsd was probably…

netdigger
- 3,659
- 3
- 26
- 49
0
votes
0 answers
Where is the definition for angular.route.IRouteParamsService?
I defined a local ref to routeParams service in my controller. routeParams:IRouteParamsService Webstorm even code completed this for me and generated an import statement at the top of my controller:
import IRouteParamsService =…

FlavorScape
- 13,301
- 12
- 75
- 117
0
votes
1 answer
How would I define a class on an interface property in typescript?
I'm attempting to create a definition file for an API provided by a third party (Skuid) and have run into an issue representing skuid.ui.Editor where Editor is a class defined somewhere else by Skuid. How would I inform the typescript compiler that…

patrickjtoy
- 15
- 3
0
votes
1 answer
List all installed typings with tsd
Is there any way to print out all of the installed tsd typings in the command line?
Something like:
$ tsd list

Will Hitchcock
- 4,648
- 3
- 22
- 32
0
votes
1 answer
Write definition files for modules exports a function returning a module
I am recently writing definition files for node.js module "mongoose-bird". This module exports a function returning a module. With guides on the internet, I wrote this:
declare module "mongoose-bird" {
export = () => MongooseAsync;
module…

小傅Fox
- 3
- 2
0
votes
0 answers
Error while installing tsd jade
I'm trying to tell Microsoft Visual Studio Code to show Intellisense options for .jade files.
I dont' know if it's possible or not, but like node and express, i used to try tsd query jade --a install and got this error:
D:\1. Projects\41.…

Hamed Zakery Miab
- 738
- 2
- 12
- 34
0
votes
2 answers
Specifying Typescript Type Definition Versions
I am a new to TypeScript and a bit confused. If my version of TypeScript is 1.0.1 (say I'm stuck on VS2012), how do I use tsd to find type definitions for a library that given I require tsc 1.0.1.
Without version information, I will often get type…

dacox
- 502
- 1
- 6
- 14
-1
votes
1 answer
typings installs every definition twice
when I install definition files with typings, two definition files are created: One of them in typings/browser and the other in typings/main.
Why does this happen and how do I prevent it, because it causes many Dublciate identifier exceptions.

Ced
- 1,301
- 11
- 30
-1
votes
2 answers
angular typing and nodejs typing 'node.d.ts' conflict
I am working on nodejs application in typescript with angular which is also in typescript. i have use gulp to transpile the files to js. but when i run command to transile my angular file it gives me error TS2300: Duplicate identifier
here is my…

Rhushikesh
- 3,630
- 8
- 45
- 82