explaingit

zhongsp/typescript

7,348TypeScriptAudience · developerComplexity · 1/5Setup · easy

TLDR

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.

Mindmap

mindmap
  root((zhongsp/typescript))
    What it is
      Chinese handbook
      Community translation
      Online readable
    Core handbook
      Basic types
      Functions and classes
      Interfaces and generics
    Advanced topics
      Decorators
      Module resolution
      Utility types
    Project config
      tsconfig.json
      Compiler options
      Build pipelines
    Release notes
      v1.1 through v5.9
    Audience
      Chinese-speaking devs
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Read the complete TypeScript language reference in Chinese, from basic types through generics and decorators, without relying on a machine translation.

USE CASE 2

Look up what changed in a specific TypeScript version using the release notes section covering every release from 1.1 to 5.9.

USE CASE 3

Learn how to configure a TypeScript project's tsconfig.json and set compiler options for different build pipelines like Gulp or Webpack.

USE CASE 4

Understand how to write declaration files so TypeScript can type-check existing JavaScript libraries you depend on.

Tech stack

TypeScript

Getting it running

Difficulty · easy Time to first run · 5min

In plain English

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.

Copy-paste prompts

Prompt 1
I am learning TypeScript in Chinese. Using the zhongsp/typescript handbook, explain the difference between interface and type alias in TypeScript with simple code examples I can run in the browser.
Prompt 2
Using the zhongsp/typescript handbook as a reference, show me how to set up a tsconfig.json for a React project that compiles strict TypeScript to ES2020 with path aliases.
Prompt 3
I need to understand TypeScript generics. Based on the zhongsp/typescript handbook, give me three progressively complex examples: a generic identity function, a generic array filter, and a generic API response wrapper.
Prompt 4
I upgraded from TypeScript 4.9 to 5.2 and something broke. Using the release notes sections from zhongsp/typescript, summarize the breaking changes between those versions I should check first.
Open on GitHub → Explain another repo

← zhongsp on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.