スキップしてメインコンテンツに進む
TypeScript
  • ダウンロード
  • ドキュメント
  • ハンドブック
  • コミュニティ
  • プレイグラウンド
  • ツール
  • in En
  • Playground
  • プレイグラウンド

      プレイグラウンド

  • Examples

      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
  • 新着情報

      See the Release notes.

      Fixits

      1. Create Function from Call

      New TS Features

      1. Abstract Class Constructors
      2. Rest Elements in Tuple Types
      3. Smarter Type Alias Preservation
      4. Use Index Accessors for Index Signatures

      See the Release notes.

      New JS Features

      1. New JSX Support
      2. See in JSDoc

      Template Literals

      1. Intro to Template Literals
      2. Mapped Types with Template Literals
      3. String Manipulation with Template Literals

      See the Release notes.

      New JS Features

      1. JSDoc Deprecated
      2. Logical Operators and Assignment
      3. Nullish Coalescing

      New TS Features

      1. Named Tuples
      2. Unknown in Catch
      3. Variadic Tuples

      New Checks

      1. Class Constructor Code Flow

      リリースノートを確認する。

      Syntax and Messaging

      1. Export Modules From
      2. Private Class Fields
      3. Type Imports

      Breaking Changes

      1. Checking Unions with Index Signatures

      JSDoc Improvements

      1. Accessibility Modifiers

      リリースノートを確認する。

      Syntax and Messaging

      1. Optional Chaining
      2. Nullish Coalescing
      3. Flattened Error Reporting

      Types and Code Flow

      1. Assertion Functions
      2. Uncalled Function Checks
      3. Recursive Type References

      Fixits

      1. Big number literals
      2. Const to let
      3. Infer From Usage Changes

      プレイグラウンドにどのような変更があったかを学びましょう。

      Language

      1. Automatic Type Acquisition
      2. Fixits

      Config

      1. New Compiler Defaults
      2. JavaScript Playgrounds

      Tooling

      1. Sharable URLs
      2. TypeScript Versions
      3. Mobile Support
  • Settings

TypeScriptをダウンロード中...

  • バージョン......
    • 実行
    • エクスポート
      • Tweet link to Playground
      • Markdown Issueとしてコピー
      • Markdownリンクとしてコピー
      • プレビュー付きMarkdownリンクとしてコピー
      • TypeScript AST Viewerで開く
      • Bug Workbenchで開く
      • CodeSandboxで開く
      • StackBlitzで開く
    • Share
    • ⇥

    Customize

    Popular Documentation Pages

    • Basic Types

      JavaScript primitive types inside TypeScript

    • Advanced Types

      TypeScript language extensions to JavaScript

    • Functions

      How to provide types to functions in JavaScript

    • Interfaces

      How to provide a type shape to JavaScript objects

    • 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

    Made with ♥ in Redmond, Boston, SF & Dublin

    Microsoft Logo

    © 2012-2021 Microsoft
    Privacy

    Using TypeScript

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

      See how TypeScript improves day to day working with JavaScript with minimal additional syntax.

      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

      Explore how TypeScript extends JavaScript to add more safety and tooling.

      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

    Community

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

    MSG