преобразовать узел в TypeScript

Javascript can easily be converted to TypeScript
though it requires some efforts for a big project

read this
https://www.typescriptlang.org/docs/handbook/migrating-from-javascript.html
https://www.tutorialsteacher.com/typescript/converting-javascript-to-typescript
Himanshu Jangid