20 lines
No EOL
451 B
TypeScript
20 lines
No EOL
451 B
TypeScript
// @sourcemap: true
|
|
// @target: es5
|
|
class Greeter {
|
|
constructor(public greeting: string, ...b: string[]) {
|
|
}
|
|
greet() {
|
|
return "<h1>" + this.greeting + "</h1>";
|
|
}
|
|
private x: string;
|
|
private x1: number = 10;
|
|
private fn() {
|
|
return this.greeting;
|
|
}
|
|
get greetings() {
|
|
return this.greeting;
|
|
}
|
|
set greetings(greetings: string) {
|
|
this.greeting = greetings;
|
|
}
|
|
} |