logo

该视频仅会员有权观看

立即开通课程「Node 框架 Express 实践」权限。

¥
199
/ 年

智能提示:IntelliSense

  • VS Code editor is very user-friendly towards TypeScript because both are created by Microsoft.
  • This compatibility eliminates the need for extra configuration.
  • Once TypeScript is aware of the types of components in an application, it makes coding more convenient without the need to remember many methods and their usages.
  • Opening a TypeScript file, such as 'main.ts', writing 'app.' triggers the editor to suggest what is contained within 'app', as it understands its type.
  • Although 'app' was not explicitly typed, TypeScript deduces it’s of type 'express'.
  • The editor provides usage suggestions and highlights issues (e.g., with a red wavy line) when methods like 'app.patch()' are used incorrectly, such as when required parameters are missing, leading to warnings.