свойств?
                  
                  
                  
                  
                  
                  export interface IItem1 {
                  
                  
                    id: number;
                  
                  
                  }
                  
                  
                  
                  
                  
                  
                  
                  
                  export interface IItem2 extends IItem1 {
                  
                  
                    id: string;
                  
                  
                  }
                  
                  
                  
                  
                  
                  Error: TS2430: Interface 'IItem2' incorrectly extends interface 'IItem1'.   Types of property 'id' are incompatible.     Type 'string' is not assignable to type 'number'.
                  
                  
                
Нет, Omit юзай
прикол, спасибо
Обсуждают сегодня