TypeScript/tests/cases/compiler/declFileEmitDeclarationsOnly.ts

17 lines
245 B
TypeScript
Raw Normal View History

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