TSD is a package manager to search and install TypeScript definition files directly from the community driven DefinitelyTyped repository.
Questions tagged [tsd]
105 questions
7
votes
5 answers
how do i install a listed typings?
I'm using a library with Typescript, and getting a compiler error.
public/components/chatlogs.ts(25,19): error TS2304: Cannot find name 'Handsontable'.
it seems there is a typings for it:
$ typings search handsontable
Viewing 2 of 2
NAME …

dcsan
- 11,333
- 15
- 77
- 118
7
votes
1 answer
Using typings d.ts manager: How do you specify which source to use and why
In typings the new tsd manager for typescript definitions after reading the doc's I am confused on what the different sources mean and how to install by specifying the source and version
Example if you search for foundation-sites by
typings search…

dan
- 2,857
- 6
- 34
- 60
7
votes
3 answers
Should I use tsd or typings?
I am wondering what is the recommended practice by Angular Team? I couldn't find it anywhere in the docs, and I am wondering what are the differences between the two. Any insights are more than welcome!

uksz
- 18,239
- 30
- 94
- 161
7
votes
2 answers
How do I import a library into node without a Typescript/TSD definition?
I'm trying to use a session helper called connect-session-knex which is obscure enough that it does not have a published typescript definition. So when I try to compile my typescript node project, I get the error,
error TS2307 Cannot find module…

FlavorScape
- 13,301
- 12
- 75
- 117
6
votes
1 answer
TypeScript: How can I make an existing namespace global?
I'm trying to stop using TSD for obtaining type definitions in a project that uses many libaries via global variables (the outFile option is used in tsconfig.json if this matters). In particular, it uses the Moment library in this way. Moment…

thorn0
- 9,362
- 3
- 68
- 96
6
votes
2 answers
typescript definition for react-router v2.0 - error `has no exported member 'browserHistory'`
I am using react-router v.2.0.0.-rc3 and typescript. I installed the definition file via tsd. Since they changed the browserHistory from beeing a mixin to a module, I get the error Module '"react-router"' has no exported member 'browserHistory' on…

Felix Hagspiel
- 2,634
- 2
- 30
- 43
6
votes
1 answer
Visual Studio specify definition file
I am using the typescript definition manager to manage TypeScript definitions for a project I'm developing in Visual Studio 2015.
It creates a "tsd.d.ts" file that references all type def files installed with tsd. This is great because just this…

user210757
- 6,996
- 17
- 66
- 115
6
votes
1 answer
visual studio code intellisense is not working for dojo amd code
I have an app.js file which has dojo amd pattern code as follows:
require(["dojo/dom", ..], function(dom){
dom.byId('someId').innerHTML = "test";
});
And using tsd, I have installed dojo.d.ts
And also created jsconfig.json file:
{
…

MohanRaj Balumuri
- 213
- 2
- 12
5
votes
1 answer
Defining TypeScript typing for module gives TS2665?
Trying to migrate from old tsd.json to typings.json. Previous my .d.ts had:
declare var modname: modname.modname;
declare module modname {
export interface modname {
new (): modname;
}
export interface foo {
bar:…

A T
- 13,008
- 21
- 97
- 158
5
votes
1 answer
TypeScript bindings for google web signin
I'm building an angular2/typescript app. I see that google put out platform.js which gives access to the gapi var as shown here on the google signin for websites. That works great, but I am having a lot of trouble getting that into typescript.
TS…

oxenfree
- 516
- 6
- 20
5
votes
3 answers
tsd: install local definition file
I have a local node package written in TypeScript, which I want to use in my actual project. Using npm, I can install local packages like this:
$ npm install --save /path/to/package
Or:
$ npm install --save /path/to/package.tar.gz
This installs…

Simon
- 683
- 3
- 7
- 18
5
votes
1 answer
Module "ng" has no exported members in vs code
I am getting the error messages Module "ng" has no exported member on all of my typings in visual studio code
My typing are were working 100% until i added angular-ui-router. I am not sure if this is the problem but i only noticed it after adding…
user1752532
5
votes
2 answers
TSD error: self signed certificate in certificate chain
I am following the Angular 2 quick start guide and I'm stuck right at the beginning of it.
My company is filtering our network connections and modifying SSL negociation. In a man in the middle style they assign a self signed certificate as the CA of…

codependent
- 23,193
- 31
- 166
- 308
4
votes
1 answer
Is there an easy way to install TypeScript definitions?
So I have been trying to use TypeScript in the last few days and I am having trouble installing definitions for external modules.
I have no problems if I use tsd like this:
tsd install express
However it seems that tsd is deprecated and I should…

Andrija Čehko
- 443
- 8
- 14
4
votes
1 answer
When to use ambient while searching for a type definition?
I'm currently migrating from tsd to typings since it's deprecated.
but It's not crystal clear when I need to use --ambient or not when looking for a definition.
Also: is it correct to say that the goal of typings, in the longterm, is to completely…

lionelB
- 209
- 3
- 14