TypeScript 官方文档

Tutorials

  • ASP.NET 4
  • ASP.NET 4: Add a CopyFiles target to the build
  • ASP.NET 4: Add example code
  • ASP.NET 4: Add TypeScript
  • ASP.NET 4: Add TypeScript code
  • ASP.NET 4: Call the script from a view
  • ASP.NET 4: Create a new project
  • ASP.NET 4: Debug
  • ASP.NET 4: Download packages from NPM
  • ASP.NET 4: Install TypeScript
  • ASP.NET 4: Set up the build
  • ASP.NET 4: Test
  • ASP.NET 4: Update tsconfig.json
  • ASP.NET 4: Write a simple Angular app in TypeScript
  • ASP.NET Core
  • ASP.NET Core: Add Angular to the gulp build
  • ASP.NET Core: Add example code
  • ASP.NET Core: Add NPM dependencies
  • ASP.NET Core: Add TypeScript
  • ASP.NET Core: Add TypeScript code
  • ASP.NET Core: Create a new project
  • ASP.NET Core: Debug
  • ASP.NET Core: Install ASP.NET Core and TypeScript
  • ASP.NET Core: Set up the build
  • ASP.NET Core: Set up the server
  • ASP.NET Core: Test
  • ASP.NET Core: Update tsconfig.json
  • ASP.NET Core: Write a simple Angular app in TypeScript
  • ASP.NET Core: Write an HTML page
  • Gulp
  • Gulp: Add modules to the code
  • Gulp: Babel
  • Gulp: Browserify
  • Gulp: Create a gulpfile.js
  • Gulp: Create a page
  • Gulp: Initialize the project
  • Gulp: Install our dependencies
  • Gulp: Minimal project
  • Gulp: Test the resulting app
  • Gulp: Uglify
  • Gulp: Watchify
  • Gulp: Write a simple example
  • Knockout
  • Knockout: Add a TypeScript configuration file
  • Knockout: Grab our runtime dependencies
  • Knockout: Initialize the project
  • Knockout: Install our build dependencies
  • Knockout: Lay out the project
  • Knockout: Putting it all together
  • Knockout: Write some code
  • Migrating from JavaScript
  • Migrating from JavaScript: Early Benefits
  • Migrating from JavaScript: Getting Stricter Checks
  • Migrating from JavaScript: Gulp
  • Migrating from JavaScript: Integrating with Build Tools
  • Migrating from JavaScript: Moving to TypeScript Files
  • Migrating from JavaScript: Setting up your Directories
  • Migrating from JavaScript: Webpack
  • Migrating from JavaScript: Weeding out Errors
  • Migrating from JavaScript: Writing a Configuration File
  • React & Webpack
  • React & Webpack: Add a TypeScript configuration file
  • React & Webpack: Create a webpack configuration file
  • React & Webpack: Initialize the project
  • React & Webpack: Install our dependencies
  • React & Webpack: Lay out the project
  • React & Webpack: Putting it all together
  • React & Webpack: Write some code
  • Declaration Files

  • By Example
  • By Example: Classes
  • By Example: Global Functions
  • By Example: Global Variables
  • By Example: Objects with Properties
  • By Example: Organizing Types
  • By Example: Overloaded Functions
  • By Example: Reusable Types (Interfaces)
  • By Example: Reusable Types (Type Aliases)
  • Consumption
  • Consumption: Consuming
  • Consumption: Downloading
  • Consumption: Searching
  • Deep Dive
  • Deep Dive: Advanced Combinations
  • Deep Dive: Definition File Theory: A Deep Dive
  • Deep Dive: Using with export = or import
  • Do's & Don'ts
  • Do's & Don'ts: Generics
  • Do's & Don'ts: Optional Parameters in Callbacks
  • Do's & Don'ts: Ordering
  • Do's & Don'ts: Overloads and Callbacks
  • Do's & Don'ts: Return Types of Callbacks
  • Do's & Don'ts: Use Optional Parameters
  • Do's & Don'ts: Use Union Types
  • global-modifying-module.d.ts
  • global-plugin.d.ts
  • global.d.ts
  • Introduction
  • Introduction: Deep Dive
  • Introduction: Find and Install Declaration Files
  • Introduction: Library Structures
  • Introduction: Publish to npm
  • Introduction: Sections
  • Introduction: Templates
  • Introduction: “Do”s and “Don’t”s
  • Library Structures
  • Library Structures: Consuming Dependencies
  • Library Structures: Dependencies on Global Libraries
  • Library Structures: Dependencies on Modules
  • Library Structures: Dependencies on UMD libraries
  • Library Structures: Global Libraries
  • Library Structures: Global Plugin
  • Library Structures: Global-modifying Modules
  • Library Structures: Identifying Kinds of Libraries
  • Library Structures: Modular Libraries
  • Library Structures: Module Plugin or UMD Plugin
  • Library Structures: Preventing Name Conflicts
  • Library Structures: The Impact of ES6 on Module Plugins
  • Library Structures: UMD
  • module-class.d.ts
  • module-function.d.ts
  • module-plugin.d.ts
  • module.d.ts
  • Publishing
  • Publishing: Dependencies
  • Publishing: Publish to @types
  • Publishing: Red flags
  • Templates
  • Mixins

  • Mixins