[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
                  
                  
                  
                  
                  
                  Array.prototype.print = function () {
                  
                  
                      console.log("array", this)
                  
                  
                  }
                  
                  
                  
                  
                  
                  a.print()
                  
                  
                
https://www.google.com/search?q=typescript+add+method+to+prototype&oq=typescript+add+metbod+to+pro&aqs=chrome.1.69i57j0l4.14763j0j4&client=ms-android-huawei&sourceid=chrome-mobile&ie=UTF-8
 TigerLoki
                          🇲🇪
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                      
                      
                        
                          TigerLoki
                          🇲🇪
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                    
                    
                  кароч, сработало если сделать свой тайпинг и сделать declare interface
Обсуждают сегодня