Top "Typescript2.1" questions

Use this tag for questions specific to new features in TypeScript 2.1. For general TypeScript questions, the correct tag is TypeScript.

Import module from root path in TypeScript

Let's suppose I've a project, and its main source directory is: C:\product\src Based on this directory, every import …

typescript typescript2.0 typescript1.8 typescript2.1 typescript2.2
Having error "Module 'name' resolves to an untyped module at..." when writing custom TypeScript definition file

I can't find TypeScript definition @type/{name} for one of my installed NodeJS packages, so I attempt to write a …

node.js typescript typescript-typings typescript2.1
Navigation Error in angular2

I have updated the angular packages version from 2.4.10 to 4.0.0 after updating i am getting the following errors while navigating. ERROR …

node.js angular webpack-2 typescript2.1
How to use Bluebird in Typescript 2.1+

(I have read this post but it is from August and it does not answer my question for the current …

javascript typescript promise bluebird typescript2.1
Observable.zip is not a function

VM95422:27 ORIGINAL EXCEPTION: WEBPACK_IMPORTED_MODULE_3_rxjs_Observable.Observable.zip is not a function Tried various imports // import 'rxjs/add/…

angular typescript rxjs typescript2.1
Is there any way to target the plain JavaScript object type in TypeScript?

UPDATE 2021 For a working solution using newer features see this answer https://stackoverflow.com/a/59647842/1323504 I'm trying to write a …

javascript typescript typescript2.1
Typescript: subclass/extend of Promise: does not refer to a Promise-compatible constructor value

I'm trying to cancel my async method call in Typescript. To do this, I have created a new Promise type, …

typescript promise typescript2.1