Ниже мой код TypeScript. В методе stati c возникает ошибка:
Свойство 'name' не существует для типа 'typeof Person'.
В чем причина эту ошибку и как ее исправить?
class Person {
name: string = 'no name'
constructor(protected id: string,){
}
showId=():string => {
return this.id
}
static showname(){return this.name}
}