TS1070: ‘private’ modifier cannot appear on a type member.
Bad Code ❌
Fixed Code ✔️
Interfaces are structures that define the public contract. This prohibits you from using
private modifiers. Only
protected can be used. To solve the problem, the
private keyword must be removed from the
name property of the