- Perform
tsc --initin the repo for initiating atsconfig.jsonfile - Edit
tsconfig.jsonconfig as per required - Use the following scripts to convert js files to ts one by one
find app/src -name "*.js" -exec sh -c 'mv "$0" "${0%.js}.ts"' {} \;- Use the following script to add
// @ts-nocheckcomment on top of all ts files to avoid immediate ts errors or don't convert them to ts
for f in **/*.ts; do echo "// @ts-nocheck$(cat "$f")" > "$f"; done