Skip to main content
TypeScript
  • 下载安装
  • 开发文档
  • 参考手册
  • Community
  • 在线运行
  • 实用工具
in En
Nodejs.cn 旗下网站
  • 在线运行
  • TS 配置

    TS 配置

  • 示例

    了解 TypeScript 如何以最少的附加语法改善日常 JavaScript 工作。

    JavaScript Essentials

    1. Hello World
    2. Objects and Arrays
    3. Functions
    4. Code Flow

    Functions with JavaScript

    1. Generic Functions
    2. Typing Functions
    3. Function Chaining

    Working With Classes

    1. Classes 101
    2. This
    3. Generic Classes
    4. Mixins

    Modern JavaScript

    1. Async Await
    2. Immutability
    3. Import Export
    4. JSDoc Support

    External APIs

    1. TypeScript with Web
    2. TypeScript with React
    3. TypeScript with Deno
    4. TypeScript with Node
    5. TypeScript with WebGL

    Helping with JavaScript

    1. Quick Fixes
    2. Errors

    探索 TypeScript 如何扩展 JavaScript 以增加更多安全性和工具。

    Primitives

    1. Any
    2. Literals
    3. Union and Intersection Types
    4. Unknown and Never

    Type Primitives

    1. Tuples
    2. Built-in Utility Types
    3. Nullable Types

    Meta-Types

    1. Conditional Types
    2. Discriminate Types
    3. Indexed Types
    4. Mapped Types

    Language

    1. Soundness
    2. Structural Typing
    3. Type Guards
    4. Type Widening and Narrowing

    Language Extensions

    1. Enums
    2. Nominal Typing
    3. Types vs Interfaces
  • 帮助
  • 设置

正在下载 TypeScript...

  • 版本......
    • 运行
    • 导出
      • 推文链接到在线运行
      • 复制为 Markdown 问题
      • 复制为 Markdown 链接
      • 复制为带预览的 Markdown 链接
      • 在 TypeScript AST 查看器中打开
      • 在 Bug Workbench 中打开
      • 在 VSCode TS 在线运行(alpha)中打开
      • 在 CodeSandbox 中打开
      • 在 StackBlitz 中打开
    • 分享
    • ⇥

    主题

    Popular Documentation Pages

    • Everyday Types

      All of the common types in TypeScript

    • Creating Types from Types

      Techniques to make more elegant types

    • More on Functions

      How to provide types to functions in JavaScript

    • More on Objects

      How to provide a type shape to JavaScript objects

    • Narrowing

      How TypeScript infers types based on runtime behavior

    • Variable Declarations

      How to create and type JavaScript variables

    • TypeScript in 5 minutes

      An overview of building a TypeScript web app

    • TSConfig Options

      All the configuration options for a project

    • Classes

      How to provide types to JavaScript ES6 classes

    TypeScript v5.8 中文网 - 粤ICP备13048890号
    Nodejs.cn 旗下网站

    Made with ♥ in Redmond, Boston, SF & Dublin

    Microsoft Logo

    © 2012-2025 Microsoft
    PrivacyTerms of Use

    Using TypeScript

    • Get Started
    • Download
    • Community
    • Playground
    • TSConfig Ref
    • Code Samples
    • Why TypeScript
    • Design

    Community

    • Get Help
    • Blog
    • GitHub Repo
    • Community Chat
    • @TypeScript
    • Mastodon
    • Stack Overflow
    • Web Repo

    MSG