17 lines
245 B
TypeScript
17 lines
245 B
TypeScript
|
// @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}`);
|
||
|
}
|
||
|
}
|