Saltar al contenido principal
TypeScript
  • Descargar
  • Docs
  • Handbook
  • Conectar
  • Playground
  • Probar TypeScript!
in En
  • Playground
  • Playground

    Playground

  • Ejemplos

    Descubre TypeScript mejora tu día a día con JavaScript con una sintaxis adicional mínima.

    JavaScript Essentials

    1. Hola Mundo
    2. Objetos y arreglos
    3. Functions
    4. Code Flow

    Functions with JavaScript

    1. Funciones genéricas
    2. Typing Functions
    3. Encadenamiento de funciones

    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 con la Web
    2. TypeScript with React
    3. TypeScript con Deno
    4. TypeScript con Node
    5. TypeScript with WebGL

    Helping with JavaScript

    1. Quick Fixes
    2. Errors

    Explora cómo TypeScript extiende JavaScript para agregar más seguridad y herramientas.

    Primitives

    1. Any
    2. Literales
    3. Tipos Unión e Intersección
    4. Unknown y Never

    Type Primitives

    1. Tuples
    2. Built-in Utility Types
    3. Tipos Anulables

    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
  • Help
  • Settings

Descargando TypeScript...

  • Versión......
    • Ejecutar
    • Exportar
      • Tweet link to Playground
      • Copiar como una incidencia en formato Markdown
      • Copiar como un enlace en formato Markdown
      • Copiar como un enlace en formato Markdown con vista previa
      • Abrir en el visor AST de TypeScript
      • Abrir en Bug Workbench
      • Open in VSCode TS Playground (alpha)
      • Abrir en CodeSandbox
      • Abrir en StackBlitz
    • Share
    • ⇥

    Customize

    Popular Documentation Pages

    • Everyday Types

      All of the common types in TypeScript

    • Creating Types from Types

      Techniques to make more elegant types

    • More on Functions

      How to provide types to functions in JavaScript

    • More on Objects

      How to provide a type shape to JavaScript objects

    • Narrowing

      How TypeScript infers types based on runtime behavior

    • 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-2025 Microsoft
    PrivacyTerms of Use

    Using TypeScript

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

    Community

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

    MSG