I am looking to enhance the code validation process and eliminate any implicit 'any' types. To achieve this, I have set "strict": true
in my tsconfig.json.
{
"compilerOptions": {
"target": "ES5",
"module": "commonjs",
"strict": true
},
"include": ["./"]
}
If I define a function as follows:
const testing = () => console.log("test");
VSCode automatically deduces the return type based on its usage:
const testing: () => void
Is there a way to further restrict this behavior and prevent VSCode from auto inferring?
Thank you