Let\'s say I want to write TypeScript definitions of a modules where it\'s JavaScript equivalent is the following:
var service = {}; service.new = function (name
In certain contexts you can quote identifier names:
interface MyModule { "new"(name: string, options: Options): NewService; } declare const m: MyModule; export = m;