This project is read-only.

Using reserved words as members of modules in ambient declaration files

Topics: General, Language Specification
Jun 20, 2013 at 7:34 AM
In v0.9, it seems that you can no longer use reserved words as members of modules. For example, in Q there is a try function, and the declaration of this function looks like:
declare module Q {
    export function try(method: Function, ...args: any[]): Promise;
How do you code around this in v0.9? Class and interface declarations are allowed to use reserved keywords, but the compiler fails on those in module declarations.