UNPKG

@shibaoxu/shibaoxu-toy

Version:
32 lines (31 loc) 1.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Student = exports.Employee = exports.Greeter = void 0; exports.Greeter = function (name) { return "Hello, " + name; }; var Employee = /** @class */ (function () { function Employee(name, age, department) { this.name = name; this.age = age; this.department = department; } Employee.prototype.echo = function () { return this.name + "/" + this.age + "/" + this.department; }; Employee.prototype.recordKpiResult = function (level) { console.log("The level is " + level); }; return Employee; }()); exports.Employee = Employee; var Student = /** @class */ (function () { function Student(name, age, grade) { this.name = name; this.age = age; this.grade = grade; } Student.prototype.echo = function () { return this.name + "/" + this.age + "/" + this.grade; }; return Student; }()); exports.Student = Student;