🌎
web.dev
search
⌘Ctrlk
🌎
web.dev
  • 🌏web.dev
  • ⚙️tools
  • 🔰HTML
  • 🔰CSS
  • 🍒JS
  • 🔰web component
  • 🌐browser
  • 🔰React
  • Server
  • 🔖附錄
    • 👔custom
    • 🧩three.js
    • 🅰️Google Apps Script
    • 📖JSDoc
    • 📦data structure
    • 🔰algorithm
    • 🔰paradigm
    • 🔰TypeScript
      • Setup
      • ⭐️ Cheat sheet
      • Type
        • type annotation
        • type predicate
        • Primitives
        • Narrowing
        • Tuples
        • Generics
        • Object
        • Function
        • Union
      • TS Operators
    • 💎resource
gitbookPowered by GitBook
block-quoteOn this pagechevron-down
  1. 🔖附錄chevron-right
  2. 🔰TypeScript

Type

  • primitivesarrow-up-right: string, number, boolean

  • anyarrow-up-right (disable type checking)

  • Array<T>arrow-up-right === T[]

  • Union Typesarrow-up-right

  • interfacearrow-up-right

  • Enumarrow-up-right

  • BigIntarrow-up-right

  • Symbolarrow-up-right

  • Cheat sheet

hashtag
Topics

  • type annotation

  • type predicate

  • Narrowing

  • Object

  • Function

hashtag
other types

  • unknownarrow-up-right, neverarrow-up-right, voidarrow-up-right

Previous⭐️ Cheat sheetchevron-leftNexttype annotationchevron-right

Last updated 4 years ago

  • Topics
  • other types