UNPKG

electron-compile

Version:

Electron supporting package to compile JS and CSS in Electron applications

10 lines (8 loc) 209 B
class Greeter { constructor(public greeting: string) { } greet() { return "<h1>" + this.greeting + "</h1>"; } }; // NB: This is not of type String! var greeter = new Greeter({});