You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
434 B
TypeScript
25 lines
434 B
TypeScript
module SimpleModule {
|
|
export interface Runnable {
|
|
run: ()=> any;
|
|
}
|
|
export class MyClass implements Runnable{
|
|
name: string;
|
|
greeting: string;
|
|
constructor (options?: {name?: string; priority?: number}) {
|
|
}
|
|
say (): string {
|
|
return this.greeting;
|
|
}
|
|
run () {
|
|
this.say()
|
|
}
|
|
}
|
|
|
|
var myObj = new MyClass();
|
|
myObj.s
|
|
export function main (): void {
|
|
myObj.say();
|
|
return;
|
|
}
|
|
}
|