TypeScript-Handbook icon indicating copy to clipboard operation
TypeScript-Handbook copied to clipboard

Please expand Type Checking JavaScript Files into mutiple sections

Open dotnetCarpenter opened this issue 5 years ago • 1 comments

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 avatar Apr 08 '20 09:04 dotnetCarpenter

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.

dotnetCarpenter avatar Apr 08 '20 14:04 dotnetCarpenter