Top "Typescript1.5" questions

Used for questions that relate to features or technical changes introduced in TypeScript 1.5

ES6 Map in Typescript

I'm creating a class in typescript that has a property that is an ES6 (ECMAscript 2016) Map like so: class Item { …

javascript typescript typescript1.5
ng-class in Angular2

I am developing a test application in angular 2 and I'm stuck with a problem of adding classes based on list …

typescript angular typescript1.5
How to properly change a variable's type in TypeScript?

Thanks for your patience here, I'm just starting out with TypeScript. I'm working on an angular 2 app that needs to …

typescript angular typescript1.5
Why the limitation on exporting an interface by default in TypeScript?

I'm using TypeScript 1.5 beta, and I'm trying to export an interface as the default export. The following code causes an …

typescript typescript1.5
How to enble/disable a button in TypeScript 1.5?

Using VS 2013. After having installed TypeScript 1.5 and following the question/suggestion to upgrade: "Your project uses a version of TypeScript …

typescript typescript1.5
Angular2 + Jspm.io : reflect-metadata shim is required when using class decorators

I am having the following problem running the below versions of JSPM with Angular2 and SystemJS (Versions: [email protected] with …

angular typescript1.5 jspm systemjs
LINQ SingleOrDefault() equivalent

In Typescript, I use this pattern often: class Vegetable { constructor(public id: number, public name: string) { } } var vegetable_array = new …

javascript linq typescript typescript1.5
Visual Studio 2015 RC Typescript experimental decorators error

How do I disable the following error in VS2015? TS1219 Experimental support for decorators is a feature that is subject …

visual-studio-2015 angular typescript1.5
How to use node_modules within Electron?

Using electron in combination with Angular2, Typescript and Electron I am try to find out how to use a node …

node.js typescript angular electron typescript1.5
VSCode: Is it possible to suppress experimental decorator warnings

In VSCode, I get the error: "Experimental support for decorators is a feature that is subject to change in a …

visual-studio-code typescript1.5