This project is read-only.

The ‘module’ keyword no longer creates a type

Topics: General, Language Specification
Apr 22, 2013 at 6:14 PM
The 0.9 preview release is now out, and the blog post links to this wiki page which says that modules no longer define a type. Could someone be more specific about how the codegen has changed exactly? What behavior can we expect to no longer work that previously worked?
Apr 22, 2013 at 10:26 PM
Edited Apr 23, 2013 at 11:49 PM
Edit: Previous post was totally wrong (thanks Anders for the heads up)! Modules will never create a type now.

You could previously say:
module m { export var x: number; }
var t: m; // t of type { x: number; }
This will no longer be valid as 'm' will not create a type.

In terms of codegen, there is no direct impact that I'm aware of.