dbarnett
11/15/2021, 4:50 PMstalbert
11/15/2021, 4:54 PMtsc
will even do that (transpile JS to JS)?Alan Fitch
11/15/2021, 4:57 PMdbarnett
11/15/2021, 4:58 PMallowJs
flag or some combination of configs - was just getting a feel for if this is valid.
and ya seemed babel is more targeted fit, just seemed tsc could be an option as well and maybe a bit more modern/supported/easy to setup if was even possiblestalbert
11/15/2021, 4:58 PMstalbert
11/15/2021, 4:59 PMallowJs
and outDir
(so that you have somewhere to write the .js file that would otherwise overwrite the source JS)dbarnett
11/15/2021, 5:01 PMstalbert
11/15/2021, 5:03 PM.js
file and change that suffix to .ts
to get started (i.e. no code change) then gradually add type infostalbert
11/15/2021, 5:04 PMdbarnett
11/15/2021, 5:05 PM--checkJs
flag? was just thinking would get a ton of compilation errors then if switching to .ts , or is there a way to ignore those if I do not care about them until wanting to more fully convert to TS.
Edit: I guess there is some "transpile only" type of solutions available, if not directly in base tsc, will research more online.