模块 - 介绍

本文档分为四个部分:

¥This document is divided into four sections:

  1. 第一部分介绍了 TypeScript 如何处理模块背后的 理论。如果你希望能够针对任何情况编写正确的模块相关编译器选项,了解如何将 TypeScript 与其他工具集成,或者了解 TypeScript 如何处理依赖包,那么这里就是起点。虽然有关于这些主题的指南和参考页,但了解这些基础知识将使阅读指南变得更容易,并为你提供处理此处未具体介绍的现实世界问题的心理框架。

    ¥The first section develops the theory behind how TypeScript approaches modules. If you want to be able to write the correct module-related compiler options for any situation, reason about how to integrate TypeScript with other tools, or understand how TypeScript processes dependency packages, this is the place to start. While there are guides and reference pages on these topics, building an understanding of these fundamentals will make reading the guides easier, and give you a mental framework for dealing with real-world problems not specifically covered here.

  2. 指南 展示了如何完成特定的实际任务,从为新项目选择正确的编译设置开始。对于想要尽快入门和运行的初学者,以及已经很好地掌握了理论但需要对复杂任务进行具体指导的专家来说,这些指南都是一个很好的起点。

    ¥The guides show how to accomplish specific real-world tasks, starting with picking the right compilation settings for a new project. The guides are a good place to start both for beginners who want to get up and running as quickly as possible and for experts who already have a good grasp of the theory but want concrete guidance on a complicated task.

  3. 参考 部分更详细地介绍了前面部分中介绍的语法和配置。

    ¥The reference section provides a more detailed look at the syntaxes and configurations presented in previous sections.

  4. 附录 涵盖了复杂的主题,需要比理论或参考部分所允许的更详细的额外解释。

    ¥The appendices cover complicated topics that deserve additional explanation in more detail than the theory or reference sections allow.