interface I_Main {
readonly RUNNING_SPEED: number;
private getHeight():void;
}
private getHeight():void;
создает ошибку: 'private modifier cannot appear on a type member' interface IModuleMenuItem {
getName(): string;
}
class ModuleMenuItem implements IModuleMenuItem {
private name;
public getName() {
return name;
}
protected setName(newName : string) {
name = newName;
}
}