Typescript Engineering

Build strict TypeScript applications with stable runtime validation, modular architecture, and browser/server correctness.

nafeeur 2a30821 657 B Updated

File contents

TypeScript Engineering

  • Keep unknown at external boundaries and narrow through validation; avoid spreading any.
  • Separate transport/domain/storage types where their lifecycle differs.
  • Handle AbortSignal, streaming, cleanup, and promise rejection paths explicitly.
  • Preserve ESM/CJS and runtime target conventions already present.
  • Use discriminated unions for state machines and exhaustive checks for protocol events.
  • Run typecheck, tests, lint, and production build.

nafeeur/MaskShift/tree/main/skills/typescript-engineering commit 2a30821311

Frequently asked questions

npx skillmds@latest add nafeeur/typescript-engineering