SpinTheMic
Pro

Interview practice question

A type-only change broke library consumers

Frontend Engineering · TypeScript · Experienced

A minor release of your internal library changed some types and broke consumers' builds, even though runtime behaviour didn't change. How do you prevent this?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Types are part of public API.
  • Semver: breaking type changes = major.
  • API extractor/report diffs.
  • Type tests for public API.
  • Test against key consumers before release.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics