TypeScript
TypeScript 使用手册(中文版)翻译。http://www.typescriptlang.org
A community-maintained Chinese translation of the official TypeScript handbook covering tutorials, core language features, advanced types, declaration files, compiler config, and release notes from version 1.1 through 5.9.
This repository is a Chinese translation of the official TypeScript handbook. TypeScript is a programming language built on top of JavaScript that adds a type system, meaning you can describe what kind of data a variable should hold, and the language will catch mistakes before the code runs. The translated documentation is available to read online at a dedicated site, and the author has also published a printed book based on this material.
The handbook is organized into several sections. The introductory tutorials walk through how to set up TypeScript with common frameworks and tools, including ASP.NET, React, and build systems like Gulp. The core handbook chapters cover the building blocks of the language: basic types, functions, classes, interfaces, and generics. A more advanced reference section goes into topics like decorators, module resolution, type compatibility, and utility types.
There are also chapters on how to write declaration files, which are files that describe the shape of existing JavaScript code so TypeScript can check it. The project configuration section explains how to set up a TypeScript project, what the tsconfig.json file does, how to set compiler options, and how to integrate TypeScript into different build pipelines.
The release notes section tracks every version of TypeScript from 1.1 through 5.9, so readers can see what changed in each update. A wiki section covers coding guidelines, common compiler errors, and editor support.
This is a community-maintained translation rather than an official Microsoft resource. It is aimed at Chinese-speaking developers who are learning TypeScript or who want a reference guide in their own language. The author notes the project is still a work in progress and welcomes corrections.
Where it fits
- Read the complete TypeScript language reference in Chinese, from basic types through generics and decorators, without relying on a machine translation.
- Look up what changed in a specific TypeScript version using the release notes section covering every release from 1.1 to 5.9.
- Learn how to configure a TypeScript project's tsconfig.json and set compiler options for different build pipelines like Gulp or Webpack.
- Understand how to write declaration files so TypeScript can type-check existing JavaScript libraries you depend on.