ts

TypeScript约定和类型安全模式。

📖 中文导读:TypeScript约定和类型安全模式。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: ts description: TypeScript conventions and type-safe patterns.

Conventions

  • Types: strict: true, type guards over assertions
  • Null Safety: Optional chaining (?.), nullish coalescing (??)
  • Style: interface for objects, type for unions, import type for types
  • Tools: oxlint for linting, Vitest for testing

Testing

describe("feature", () => {
  it("behavior description", () => {
    // AAA pattern, expect API
  });
});