Top "Typescript2.0" questions

Tag for questions specific to new features in TypeScript 2.x. For general TypeScript questions, the correct tag is TypeScript.

find sum of Boolean values JavaScript object array

Hi i am trying to find the sum of Boolean values in the object array in JavaScript My json like …

javascript arrays typescript javascript-objects typescript2.0
Visual Studio -> Shared TypeScript Library -> TS6059 File '' is not under 'rootDir' ''. 'rootDir' is expected to contain all source files

We are using Visual Studio 2017 and have two separate web projects that are supposed to share some React components written …

javascript visual-studio typescript webpack typescript2.0
How do I compile my TypeScript code for Node.js to one file?

I want to compile TypeScript to one file when using with Node.js. I have tried configuring "tsconfig.json" like …

node.js typescript typescript2.0
Is it possible to create dynamic getters/setters in typescript?

I'm new in typescript, and i'm trying to rewrite our application from es2016 to typescript. My task is to have …

class typescript dynamic typescript2.0
How to use Webpack 2 Raw-Loader to read files

I am currently stuck in a spot where I need to start a NodeJS server in HTTPS mode and need …

node.js webpack webpack-2 typescript2.0 raw-loader
How to use __webpack_public_path__ variable in a Webpack configuration?

I am currently working on a web application using React, TypeScript and Webpack. I want Webpack to generate images URLs …

reactjs typescript webpack typescript2.0
Angular 1.x with TypeScript 2.x, @types, and SystemJS - Using global typings

I am trying to use Angular 1.x with the new TS2 and @types registry but running into problems. It looks …

angularjs typescript typescript-typings typescript2.0
Call TypeScript Method from jquery in angular 2

Im using boostrap-select Dropdown in angular 2 forms with jquery. Onchange jquery event i want to call a Typescript onDropDownChangeChange method. …

angular typescript angular2-forms typescript2.0
How to import external type into global .d.ts file

I'm using Moment.js to handle datetime objects in my TypeScript project. I would like to define an object type …

typescript momentjs typescript2.0
Typescript: Use class as interface

I tried to use an Class as Interface for another class. With this I am trying to accomplish an up-to-date …

angular typescript typescript2.0