Fix a few TypeScript issues #42
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
icebox
Do eventually
If a file has no exports, everything in it is inexplicably exported as global and accessible in any other file, though using these exported values at runtime of course causes a crash. I'm sure it's just some silly tsconfig setting that I can't find. Not a huge deal but should be fixed eventually. Googled it for 10 mins and can't figure it out, maybe someone knows off-hand.
Would be nice to move to a testing framework that does compilation for us, so we don't have to run
npm run watch
while writing and solving unit tests. Local dev uses ts-node internally (via NPM scripts), and Dockerfile compiles for us. Tests are the only thing that need manual compiling. Jest has ts-jest but that also type-checks and IIRC has some issues. Mocha looks like a good candidate to convert our unit tests to.Is it possible to get VS Code to see all changes in all files without having to do the npm-watch VS Code task? It'd be nice to not have to run that in the background every time we do dev. A short googling was inconclusive but didn't look promising.
After TypeScript 4.5 lands, I think we'll be able to remove the custom vscode settings for ".js" extensions in both JS and TS (we can probably remove JS ones now, since I got rid of the only .js file left in the project recently).
The text was updated successfully, but these errors were encountered: