In most cases, it is not necessary to convert anything as TypeScript is a superset of JavaScript and thus every valid JS code is valid TS code.