Remember to check if you have Strict Mode or noImplicitAny on: https://www.typescriptlang.org/tsconfig/#noImplicitAny
If you are using VS Code's built-in TypeScript without a tsconfig file, then Strict Mode is off by default.
This turned out to be my original problem.