Вопрос есть в коллекциях
Как объявить "read. only" свойство в TypeScript?
- read. only myProperty: string
- myProperty: read. only string
- read. only property myProperty: string
- myProperty: string; read. only