- Perform
tsc --init
in the repo for initiating atsconfig.json
file - Edit
tsconfig.json
config 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-nocheck
comment on top of all ts files to avoid immediate ts errors or don't convert them to ts