AG
Size: a a a
AG
AS
AS
AG
S🛸
S🛸
AS
S🛸
AS
S🛸
AS
И
М
interface ICat {
name: string;
new(name: string): ICat
meow(): string;
}
const Cat = (function () {
function Cat(this: ICat, name: string) {
this.name = name;
}
Cat.prototype.meow = function (this: ICat) {
return this.name + ' says: meow!'
};
return Cat as unknown as ICat;
}());
const cat = new Cat('kitty');
console.log(cat.meow());М
М
М
М
PS
М
М