Is not assignable. Типы typescript. void тип. argument of type ref is not assignable to parameter. argument of type ref is not assignable to paramets.