Demonstrates a bug when using typescript eslint
- Initialize the yarn workspace in this repo
- Open the file
main.ts
. (Do NOT invoke tsc to build) - Notice the error in the second function
If you build everything and lint again, the problem is gone. (with VS Code's eslint extension, I just restart VS Code).