Questions tagged [tsd]

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

105 questions
2
votes
2 answers

Property 'noUiSlider' does not exist on type 'HTMLElement'

This is a road block. What am I doing wrong? .... /// var slider:HTMLElement = document.getElementById('slider'); noUiSlider.create(slider, { start: +$input.val(), step: +$input.prop('step'), …
Simon
  • 2,484
  • 6
  • 35
  • 54
2
votes
1 answer

Typings for ngCordova seem to be missing

I'm trying to get ngCordova typings but both tsd and typings fail: If I execute: tsd install ng-cordova --save It Outputs; zero results If I execute: typings install dt~ng-cordova --save --global It outputs: typings ERR! message Unable to find…
Jesús López
  • 8,338
  • 7
  • 40
  • 66
2
votes
2 answers

typings install module dependencies

I am trying to migrate tsd to typings, as typings seems to be replacement of tsd. So I run the following command for typings install dt~express --global --save and the output is like typings INFO reference Stripped reference…
Fred Yang
  • 2,521
  • 3
  • 21
  • 29
2
votes
0 answers

Extend Typescript definition file (.d.ts) when it comes from NPM

I extend moment to manage public holiday (base on french calendar). So I also extend typescript definition file, but before I was using tsd with ///
Felix_Billon
  • 690
  • 2
  • 10
  • 21
2
votes
2 answers

Custom paths for package managers like Nuget/npm/bower/typings

I'm setting up a project in Visual Studio based on AngularJS and Typescript and it's a bit discouraging that I have to deal with yet another package manager as soon as I need to install dependencies. The issue I have is that package managers require…
Alexander Efimov
  • 2,685
  • 3
  • 18
  • 22
2
votes
1 answer

MVC6, tsd and typings

Since TSD is officially deprecated and wanting to look into the future, what is the structure/practice to using typings in MVC6 framework? Any pointers will be appreciated and thank you in advance. I tried using a tutorial from the typings website…
howardlo
  • 1,401
  • 1
  • 15
  • 20
2
votes
1 answer

AgGrid - Is there any way to get the type definitions for latest versions 4.0+?

I am using "ag-grid": "4.0.5" in a project with Angular 1.5.2 and Typescript with Visual Studio 2015. The type definitions available for tsd (with the command tsd install ag-grid --resolve --save installs the…
diegosasw
  • 13,734
  • 16
  • 95
  • 159
2
votes
0 answers

How to create typed file (d.ts) from typescript jspm project?

I write jspm project in TypeScript. It is working well and life is happy. Now I want to create a single d.ts file for my module. tsc -d with my tsconfig.json doesn't work as tsc cannot walk the imports from jspm. jspm and ts (plugin-typescript) does…
unional
  • 14,651
  • 5
  • 32
  • 56
2
votes
2 answers

Are definitelyTyped packages up to date?

I can't find any information on how packages are managed. I am looking to use createJS but the lastest commit was a year ago. So it is probably not the current JS version. I am new to typescript. Not sure I want to proceed if all those good UI lib…
Albert James Teddy
  • 1,336
  • 1
  • 13
  • 24
2
votes
0 answers

Angular2 and express node.d.ts conflict

I am trying to configure an angular2+express project. I understand the cause of the problem, but not the correct solution. Here are the relevant parts of my package.json dependencies: "dependencies": { "angular2": "2.0.0-beta.0", "express":…
Ken
  • 797
  • 1
  • 5
  • 11
2
votes
1 answer

How to import a function exported using this given export construct?

DefinitelyTyped has a definition for Highlight.js which defines and exports a module like so: declare module "highlight.js" { module hljs { export function highlight( name: string, value: string, …
Edy Bourne
  • 5,679
  • 13
  • 53
  • 101
2
votes
2 answers

Does it make sense to check-in Visual Studio Code typings folder with dts?

Working with Visual Studio Code. It suggested to import types definition and downloaded them into /typings folder. Do I need to check this folder in or it can be restored somehow? Thanks.
vicneanschi
  • 468
  • 1
  • 4
  • 13
2
votes
1 answer

Error executing tsc on ngconf2015demo - missing tsd.d.ts

Trying to setup Angular2 with Visual Studio 2015RC on Windows, and following TodoMVC application demo for ng-conf 2015 instructions, I get to the point where tsd reinstall produces the following output: c:\...>tsd reinstall >> tsd 0.5.7 -> running…
G. Stoynev
  • 7,389
  • 6
  • 38
  • 49
1
vote
1 answer

tsd install jquery --save Doesn't Install When Run

I've just started learning TypeScript, and I'm making a project that requires me to run tsd install jquery --save. When I ran that command, I received an error saying "The type definition index.d.ts does not exist. Create one and try again." I've…
user9832881
1
vote
1 answer

WebStorm type checking React props using type definition

I'm using WebStorm 2018.3.4 and am trying to figure out how to do type checking on a React component's props. Specifically, if a prop is marked as a string but I give it a number I want WebStorm to show an error. I've created a type definition file…
themanatuf
  • 2,880
  • 2
  • 25
  • 39