=> console.log(comments))
                  
                  
                  
                  
                  
                  console.log(comments)
                  
                  
                  
                  
                  
                  Можно ли в константу comments присвоить данные из промиса?
                  
                  
                
.then(comments => comments)
const comments = ServiceComments.getComments().then(comments => comments) Всё равно тип у консты Promise<IComments>
Обсуждают сегодня