Open dotnetCarpenter opened 4 years ago
Actually I found the the answer to https://stackoverflow.com/questions/61097030/how-to-import-custom-typings-into-a-vscode-js-project here, https://www.typescriptlang.org/docs/handbook/type-checking-javascript-files.html#import-types.
Checking JavaScript Files.md should have a table of content or get split up into several files.
The current section, https://www.typescriptlang.org/docs/handbook/type-checking-javascript-files.html, is huge but at the same time lacking a lot of information.
Questions like https://stackoverflow.com/questions/61097030/how-to-import-custom-typings-into-a-vscode-js-project, https://stackoverflow.com/questions/51982814/reference-definition-from-ts-check-js-file etc... are not answered. Rather, one has to search github issues and trial and error, to get a solution.
//@ts-check
is powerful but difficult to actually use, once you use it on anything apart from extremely simple code.