I would much prefer if they just added a new keyword to the language, instead of hacks like this.
https://github.com/Microsoft/TypeScript/issues/202