microsoft / TypeScript-Handbook

Deprecated, please use the TypeScript-Website repo instead
https://github.com/microsoft/TypeScript-Website
Apache License 2.0
4.88k stars 1.13k forks source link

Please expand Type Checking JavaScript Files into mutiple sections #1312

Open dotnetCarpenter opened 4 years ago

dotnetCarpenter commented 4 years ago

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.

dotnetCarpenter commented 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.