# ts > TypeScript conventions and type-safe patterns. - Author: Alisue - Repository: lambdalisue/dotfiles - Version: 20260121134727 - Stars: 41 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/lambdalisue/dotfiles - Web: https://mule.run/skillshub/@@lambdalisue/dotfiles~ts:20260121134727 --- --- 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 ```typescript describe("feature", () => { it("behavior description", () => { // AAA pattern, expect API }); }); ```