Проблема обновления Angulaar 12 с объявлением типа

#angular12

Вопрос:

Мы обновили приложение с углового 10 до углового 12. Версия Ang 12. Версия машинописного текста ^4.2.4

Получение некоторой ошибки после обновления ниже типа кода

  get(): T {
const xyz: T = descriptor.value.bind(this);
//other code
}
 return xyz;
})); ```

getting below errors in same line:
export code abc<T> = (target:object, method Name: string, 

',' is expected.
'?' is expected.
Expression expected.


Please help to understand what can be the issue .
Note: the code was working fine in Ng10 setup.