Typescript文档

https://github.com/Microsoft/TypeScript
https://www.typescriptlang.org/zh/docs/

TypeScript: 静态类型检查器

2023.2.19 星期日

Get Started

Quick introductions based on your background or preference.

TS for the New Programmer
TypeScript for JS Programmers
TS for Java/C# Programmers
TS for Functional Programmers
TypeScript Tooling in 5 minutes

Handbook

A great first read for your daily TS work.

The TypeScript Handbook

The Basics

Everyday Types

Narrowing

More on Functions

Object Types

Type Manipulation

Creating Types from Types
Generics
Keyof Type Operator
Typeof Type Operator
Indexed Access Types
Conditional Types
Mapped Types
Template Literal Types

Classes

Modules

Reference

Tutorials

Using TypeScript in several environments.

ASP.NET Core

Gulp

DOM Manipulation

Migrating from JavaScript

Using Babel with TypeScript

Declaration Files

Learn how to write declaration files to describe existing JavaScript. Important for DefinitelyTyped contributions.

Introduction

Declaration Reference

Library Structures

.d.ts Templates

Modules .d.ts
Module: Plugin
Module: Class
Module: Function
Global .d.ts
Global: Modifying Module

Do’s and Don’ts

Deep Dive

Publishing

Consumption

JavaScript

How to use TypeScript-powered JavaScript tooling.

JS Projects Utilizing TypeScript

Type Checking JavaScript Files

JSDoc Reference

Creating .d.ts Files from .js files

Project Configuration

Compiler configuration reference.

What is a tsconfig.json

Compiler Options in MSBuild

TSConfig Reference

tsc CLI Options

Project References

Integrating with Build Tools

Configuring Watch

Nightly Builds

Cheat Sheets

Downloadable syntax reference pages for different parts of everyday TypeScript code.

Control Flow Analysis

Classes

Interfaces

Types

Download PDFs and PNGs

knowledge is no pay,reward is kindness
0%