Look at the code in the TypeScript playground. I need comments to be placed in the result JS code to have an ability to determine browser is IE according to this question. cc_on
is a IE conditional compilation directive.
TypeScript
window.IsBrowser = {
IE: function() {
return /*@cc_on!@*/false;
}
};
Compiled JavaScript
window.IsBrowser = {
IE: function () {
return false;
}
};