TypeScript/tests/cases/compiler/declFileEmitDeclarationOnly.ts
Mohamed Hegazy 8f8fec433e
Rename switch --emitDeclarationsOnly to --emitDeclarationOnly (#21651)
* Rename `--emitDeclarationsOnly` to `--renameDeclarationOnly`

* Rename test files
2018-02-05 14:48:50 -08:00

17 lines
244 B
TypeScript

// @declaration: true
// @emitDeclarationOnly: true
// @filename: helloworld.ts
const Log = {
info(msg: string) {}
}
class HelloWorld {
constructor(private name: string) {
}
public hello() {
Log.info(`Hello ${this.name}`);
}
}