Oto moja własność, gdzie interfejs definiuje wiele razy:
ExamStatusId = {
All: <IEnumElement>{
id: this.examStatusSelectId,
text: 'Exam Status: All',
val: 0
},
Current: <IEnumElement>{
id: this.examStatusSelectId,
text: 'Exam Status: Current',
val: 1
}
}
Tutaj jest interfejs, który mam:
interface IEnumElement {
elem: string;
text: string;
val: number
}
Czy jest jakiś sposób, że mogę uniknąć konieczności określić interfejs po każdej własności ExamStatusId?















