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
1 answer

Using a Typescript .d.ts file that doesn't declare a module

I'm using tsd to download definitions from Definitely Typed and compile into a tsd.d.ts file. I haven't been able to build yet, but when I use an import like this: import * as THREE from "three" Visual Studio intellisense is happy. However, this…
Trygve
  • 591
  • 1
  • 7
  • 22
1
vote
2 answers

Error thrown when trying to get DefinitelyTyped's tsd to install angular2 definition

I am getting the error below when I run tsd install angular2 from the Package Manager Console in Visual Studio 2015. I have installed other definitions like "require" successfully so it's not tsd itself or some network issue. Is it because…
Jonas Arcangel
  • 2,085
  • 11
  • 55
  • 85
1
vote
1 answer

How to compile TypeScript without using any references whatsoever

Forgive me if I misunderstand, but I thought that if I used a tsconfig.json file at my project root, then I would no longer need to use any /// tags in order to make my code compile. Am I wrong? For example, I'm using…
battmanz
  • 2,266
  • 4
  • 23
  • 32
1
vote
1 answer

TypeScript: workaround for relative reference path?

My goal is to refer to .d.ts files that I've installed with tsd. The tsd definitions GitHub repository has examples using paths relative to the source file's location: /// I find that a potential maintenance…
Carl Patenaude Poulin
  • 6,238
  • 5
  • 24
  • 46
1
vote
1 answer

TypeScript Definition manager error on query

Following the Angular 2 5 minutes quickstart, I wanted to install Angular 2 definitions (for TypeScript compiler and my IDE) provided by DefinitelyTyped using their package manager, tsd. So I typed this command on a terminal tsd query angular2…
Blackus
  • 6,883
  • 5
  • 40
  • 51
1
vote
1 answer

Publishing a TypeScript library with Bower

How to properly build and package a TypeScript library so that it can be used from both JavaScript and TypeScript code easily using Bower and TSD?
thSoft
  • 21,755
  • 5
  • 88
  • 103
1
vote
1 answer

typescript error TS2095: Could not find symbol 'gapi'

I am using Google API (gapi) in my client code, written in typescript. For gapi.auth.authorize typescript gives error - error TS2095: Could not find symbol 'gapi'. Now I have the gapi typing gapi/gapi.d.ts installed correctly in my project. I…
Vinayak Garg
  • 6,518
  • 10
  • 53
  • 80
0
votes
1 answer

Reading a file with Polars that has been created as a TAD file and has sep='\t', lineterminator='\r'

I can read a dataframe like this in pandas (it was originally a TAD file): pd.read_csv('/content/drive/MyDrive/Database Nencini/estrapola_articoli.csv', sep='\t', lineterminator='\r') How can I do it using polars library?
coelidonum
  • 523
  • 5
  • 17
0
votes
1 answer

tsd reinstall: The type definition `index.d.ts` does not exist. Create one and try again

I was looking into upgrading the tsd version in my node project from 0.6.5 version to the latest 0.13.1. I have a tsd.json defined which is used when I run tsd reinstall. This used to work for version 0.6.5, however, with the new 0.13.1 version, the…
Kunal Khanna
  • 33
  • 1
  • 7
0
votes
1 answer

How to mix ambient and non-ambient typescript definition files

I have an older typescript project which uses the /typings/tsd.json method of handling .d.ts files, and which also uses Typescript's module keyword to compile source into javascript's IIFE module pattern. The module setting in tsconfig.json…
Ron Newcomb
  • 2,886
  • 21
  • 24
0
votes
1 answer

typescript export imporatble from tsd

File index.ts (generated with swagger-codegen) export * from './api/api'; export * from './model/models'; File tsd.d.ts ... /// typescript 2.2.1. Why do I still need to use import statements (import myDTO…
terafor
  • 1,620
  • 21
  • 28
0
votes
1 answer

Angular tsd based application + Spring Boot in JAR

I have faced a problem connected with project config. I am working on an application which consist of server-side (Spring Boot App) and client-side(Angular-Gulp). I would like to configure my project so that when I build a jar file it would include…
wacik93
  • 283
  • 1
  • 7
  • 16
0
votes
1 answer

Why does require('react') cause "Import declaration conflicts" with typescript?

I am trying to use Typescript with tsd (haven't upgraded to typings yet), React, and JSX together... oh my! Talk about build system intricacies... My .tsx file (Typescript + JSX) compiles fine (using gulp-typescript) when I use import * as React…
Raine Revere
  • 30,985
  • 5
  • 40
  • 52
0
votes
1 answer

Angular Typescript: avoid multiple reference path

I am setting Typescript up to an angular 1.5 application. In order to make a TS file be compiled by gulp with no error, I must add the following: /// Typings folder is fulled using a…
Rolintocour
  • 2,934
  • 4
  • 32
  • 63
0
votes
1 answer

Typescript: Require a (new) TYPINGS file the correct way (in node)?

I am getting very confused with regards to importing a Typings file, there seems to be so many ways to do it. I am writing a nodejs program. I installed momentJS via typings (not an ambient module) and I have managed to import it like so var…
Martin
  • 23,844
  • 55
  • 201
  • 327