ECMAScript

  • อดีต (แนวทางก่อนหน้าที่ยังคงใช้ได้อยู่)
    • Tagged template literals
    • Symbols
  • ES2020
    • Optional chaining
    • ตัวดำเนินการ Nullish coalescing (??)
    • import()
    • String.matchAll
    • Promise.allSettled()
    • BigInt
    • globalThis
    • import.meta
    • export * as … from …
  • ES2021
    • String.replaceAll()
    • Promise.any
    • การกำหนดค่าแบบ Nullish coalescing (??=)
    • การกำหนดค่าแบบตรรกะ AND (&&=)
    • การกำหนดค่าแบบตรรกะ OR (||=)
    • WeakRef
    • ตัวคั่นเลขใน numeric literal (_)
  • ES2022
    • Top level await
    • #private
    • สมาชิกคลาสแบบ static
    • static initialization block ในคลาส
    • Import Assertions (ส่วนขยายที่ไม่เป็นมาตรฐานซึ่งติดตั้งใน V8)
    • ดัชนีการจับคู่ของ regex
    • การทำดัชนีแบบค่าติดลบ (.at(-1))
    • hasOwn
    • Error cause
  • อนาคต (ใช้งานได้แล้วใน TypeScript 4.9)
    • Auto-Accessor

TypeScript

  • พื้นฐาน (บริบทสำหรับการแนะนำเพิ่มเติม)
    • Generics
  • อดีต (แนวทางก่อนหน้าที่ยังคงใช้ได้อยู่)
    • Utility types
    • Conditional types
    • การอนุมานด้วย conditional types
    • องค์ประกอบ optional และ rest ใน tuple
    • คลาสและเมธอดแบบ abstract
    • Constructor signatures
    • Utility type ConstructorParameters
  • TypeScript 4.0
    • Variadic tuple types
    • องค์ประกอบ tuple ที่มี label
    • อนุมานพร็อพเพอร์ตีของคลาสจาก constructor
    • รองรับ JSDoc @deprecated
  • TypeScript 4.1
    • Template literal types
    • การ remap key ใน mapped types
    • Recursive conditional types
    • เอดิเตอร์ที่รองรับแท็ก JSDOC @see
    • tsc --explainFiles
    • ตัวแปรที่ถูก destructure สามารถทำเครื่องหมายอย่างชัดเจนว่าไม่ได้ใช้งานได้
  • TypeScript 4.3
    • แยกประเภทการเขียนออกจากพร็อพเพอร์ตี
    • override
    • Static index signatures
    • เอดิเตอร์ที่รองรับแท็ก JSDOC @link
  • TypeScript 4.4
    • ประเภทพร็อพเพอร์ตีแบบ optional ที่แม่นยำ (--exactOptionalPropertyTypes)
  • TypeScript 4.5
    • ประเภท Awaited และการปรับปรุง Promise
    • ตัวแก้ไข type สำหรับชื่อ Import
    • const assertions
    • การเติมโค้ด snippet สำหรับเมธอดภายในคลาส
  • TypeScript 4.6
    • การปรับปรุงการอนุมาน indexed access
    • TypeScript Trace Analyzer (--generateTrace):
  • TypeScript 4.7
    • รองรับ ECMAScript modules ของ Node.js
    • ฟิลด์ใน package.json
    • Instantiation expressions
    • เงื่อนไข extends สำหรับตัวแปรชนิด infer
    • การใส่คำอธิบาย variance แบบ optional สำหรับ type parameters
    • การ resolve โมดูลแบบกำหนดเองด้วย moduleSuffixes
    • ไปยังตำแหน่งที่กำหนด source ในเอดิเตอร์
  • TypeScript 4.9
    • ตัวดำเนินการ satisfies
    • คำสั่ง "ลบ Import ที่ไม่ได้ใช้งาน" และ "จัดเรียง Import" สำหรับเอดิเตอร์

ยังไม่มีความคิดเห็น

ยังไม่มีความคิดเห็น