In trying to get Civet to typecheck itself, I noticed that importing a .civet file didn't resolve because of the dreaded "import .js to get a .ts file" issue.
Also add a bit of typing to CLI itself.
This PR reduces the number of self-check type errors from 722 to 635, most of which seem "real".
(These numbers are assuming https://github.com/microsoft/TypeScript-Website/pull/3165 gets merged; until then, the numbers are higher because Node isn't successfully imported. Though we work around that issue by adding types: ['node'] to tsconfig.json.)
In trying to get Civet to typecheck itself, I noticed that
import
ing a.civet
file didn't resolve because of the dreaded "import.js
to get a.ts
file" issue.Also add a bit of typing to CLI itself.
This PR reduces the number of self-check type errors from 722 to 635, most of which seem "real".
(These numbers are assuming https://github.com/microsoft/TypeScript-Website/pull/3165 gets merged; until then, the numbers are higher because Node isn't successfully imported. Though we work around that issue by adding
types: ['node']
totsconfig.json
.)