Skip to content

Instantly share code, notes, and snippets.

@taxilian
Last active January 6, 2016 19:33
Show Gist options
  • Save taxilian/0d23df3aee984cf9a937 to your computer and use it in GitHub Desktop.
Save taxilian/0d23df3aee984cf9a937 to your computer and use it in GitHub Desktop.
[richard:~/tmp] $ tsc -p .
import testService = require('./testService');
var a: testService;
var b = new testService();
var b: (typeof b);
class testService {
private someFlag = false;
constructor() {
console.log("Do something cool");
}
};
export = testService;
{
"compilerOptions": {
"target": "es5",
"module": "amd",
"noImplicitAny": true,
"removeComments": false,
"preserveConstEnums": true,
"inlineSourceMap": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment