# Typescript

> Write idiomatic, type-safe TypeScript: errors as values and composing them, parse-don't-validate,…

Write idiomatic, type-safe TypeScript: errors as values and composing them, parse-don't-validate, branded and domain types, the record-type choice (interface, type, class, brand, readonly, as const satisfies), deep domain modules and import cycles, cancellation with AbortSignal and structured concurrency, resource and transaction scopes with using and AsyncDisposableStack, the composition root, retries and the injected clock, exhaustiveness and the cast/`any`/`!` discipline, the Effect adoption boundary, and which compiler and runtime to target (TS 7, Node, Bun, Deno, erasable syntax). Use when designing or reviewing TypeScript specifically. Routing: architecture for agnostic design, mechanical-enforcement for lint and tsconfig config, testing for test strategy, the vendored effect skill for programs written in Effect.

- Page: https://ss33.ai/skills/connorads/typescript-92396851096
- Publisher: connorads
- Category: [Software Development](https://ss33.ai/skills/category/software-development-t44z8z) › [Languages & frameworks](https://ss33.ai/skills/category/software-development-t44z8z/languages-and-frameworks-rgvrso)
- Source: https://github.com/connorads/dotfiles/blob/a99bce6ffc926729f81191a8f8ff6c9ab5697881/skills/typescript/SKILL.md

## Skill

This skill's licence does not allow redistribution, so the store does not serve its text. Get it from the author: https://github.com/connorads/dotfiles/blob/a99bce6ffc926729f81191a8f8ff6c9ab5697881/skills/typescript/SKILL.md
