VS Express 2013 for Web with Update 2 RC does not provide TypeScript new project templates

I have installed 12.0.30324.00 Update 2 RC and when going to File > New Project, there is no TypeScript node nor any TypeScript related templates to select. Ignoring that and taking an existing J...

Id #2452 | Release: None | Updated: Today at 9:13 AM by Sohra | Created: Today at 9:13 AM by Sohra

Allow operators to work on custom types

The following demonstrates a small example of a library defining an object that allows using + correctly on variables of this type: function MyNumber(primitiveNumber) { this.wrapped = primitiveNumb...

Id #2451 | Release: None | Updated: Today at 2:13 AM by jamesnw | Created: Sun at 8:07 PM by Airblader

tsc.js ceased to work in Windows Script Host

tsc.js has always worked with JavaScript implementation included with Windows -- Windiws Script Host. However, in v 1.0 it does not work anymore. It breaks because of Array.forEach call, which is...

Id #2450 | Release: None | Updated: Sat at 11:02 PM by mihailik | Created: Sat at 11:02 PM by mihailik

Wrong error with ?: expressions

Observed The error Type of conditional '{}' must be identical to 'X', 'X' or 'typeof X'. from the following (bad) code: enum X { A, B, C } var s: string; var x = X; x = s == "a" ? X.A : s == ...

Id #2449 | Release: None | Updated: Sat at 4:02 PM by AdamFreidin | Created: Sat at 4:02 PM by AdamFreidin

Require with non-relative path can pull in unexpected code

If a require statement has a non-relative path (eg. require('mymod') ) then tsc will search all directories from the container of the requiring file all the way up to the file system root for a cor...

Id #2448 | Release: None | Updated: Sat at 10:12 PM by thorn0 | Created: Sat at 1:38 PM by robertknight

FileReader readAsArrayBuffer() and File

The following lines of code var fileReader: FileReader = new FileReader(); var file: File = input.files[0]; fileReader.readAsArrayBuffer(file); produce the error Type 'File' is missing property '...

Id #2446 | Release: None | Updated: Sat at 10:14 PM by codebrewery | Created: Fri at 8:26 PM by codebrewery

Generic types of default parameters in functions are not verified.

Consider the following example: export interface B<a, b> { one: a; another: b; } function toVal<a>() : a { return null; } var t1 = toVal<B<string>>(); // Fails export function t2( value = toVal<...

Id #2445 | Release: None | Updated: Fri at 8:12 PM by AdamFreidin | Created: Fri at 3:43 PM by middlewest

Feature Request: Generic Parameter Overloads (post-V1.0)

The suggestion is to allow generic parameter overloads like the following: declare module Backbone { class Model{} class Events{} class ViewOptions<TModel extends Model> {} class Collection<TModel...

Id #2438 | Release: None | Updated: Thu at 8:56 PM by ivogabe | Created: Apr 14 at 7:53 PM by omidkrad

static class members can leak module-private types

Running typescript --declaration on module X { enum PrivateEnum { A, B, C }; export class UsesPrivateEnum { static LeakPrivateEnum = PrivateEnum; // : typeof PrivateEnum } } produces the de...

Id #2437 | Release: None | Updated: Apr 15 at 4:53 PM by AdamFreidin | Created: Apr 14 at 5:47 PM by AdamFreidin

Conditional Types

I think more control over classes and modules, such as "if (true) class T { }" or "if (true) module T { }" should be allowed. This may be a good way to load a whole minified script WITHOUT also ex...

Id #2432 | Release: None | Updated: Apr 14 at 11:50 PM by jamesnw | Created: Apr 14 at 7:23 AM by jamesnw