Top "Typescript1.5" questions

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

Using namespace spread over multiple module files in TypeScript

I've started work on a large-scale typescript project. Right from the outset, I want to keep my files organized (this …

javascript typescript typescript1.5
Unable to catch events from EventEmitter in Angular2?

I have written a basic angular application that utilises the EventEmitter class, however i cannot get the listening component to …

typescript eventemitter angular typescript1.5
How to extend the 'Window' typescript interface

In my example, I'm trying to extend the TS Window interface to include a polyfill for fetch. Why doesn't matter. …

typescript typescript1.5 fetch-api
Coding a closure in TypeScript

Just for amusement, I'm trying to use TypeScript's strong typing in code containing a closure. Here's what the original JavaScript …

javascript typescript typescript1.5
Can I define a Typescript class which has an index signature?

I have an interface type called IRawParams which simply specifies a string key and any vals. interface IRawParams { [key: string]: …

typescript typescript1.5
Module '"angular2/angular2"' has no exported member 'For'

I am following the tutorial on the official Angular2 website. https://angular.io/docs/js/latest/guide/displaying-data.html Here …

typescript angular typescript1.5
Typescript compile error: Property 'classList' does not exist on type 'Node'

Windows 7 x64 Compiling using gulp-typescript 2.7.7 using typescript 1.5 beta Getting error: Property 'classList' does not exist on type 'Node' because of …

typescript typescript1.5
Declare Typescript global variable as "module" type

I have the React type definition file (that is declared using an external module). In my source files, I usually …

typescript typescript1.5
AngularJS 2.0 TypeScript Intellij idea (or webstorm) - ES6 import syntax

Trying to make these steps to make AngularJS 2.0 sample app running. On that step, putting code in app.ts: /// <…

intellij-idea typescript1.5 typescript1.4
TypeScript type parameter to implement multiple interfaces

In C#, I can do this: class Dictionary<TKey, TVal> where TKey : IComparable, IEnumerable { } Is there a way …

generics interface typescript typescript1.5