speed icon indicating copy to clipboard operation
speed copied to clipboard

my TS project is slow. now what?

typescript speed

my TS project is slow to build. now what?

  1. use project references https://react-typescript-cheatsheet.netlify.app/docs/advanced/patterns_by_version#typescript-30
  2. use --incremental
  3. yarn tsd --diagnostics to get a sense
  4. TypeScript team performance documentation - https://github.com/microsoft/TypeScript/wiki/Performance
  5. TypeScript Performance tracing (4.1+ only) - https://github.com/microsoft/TypeScript/wiki/Performance-Tracing

war stories

  • https://medium.com/pixel-and-ink/understanding-and-improving-emotion-10s-typescript-types-622e2d172f6f