SpinTheMic
Pro

Interview practice question

Designing the types for a public SDK

Frontend Engineering · TypeScript · Experienced

You're designing the TypeScript types for a public SDK used by thousands of developers. What principles guide you?

What a strong answer covers

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

  • Clear, readable public types; good names.
  • Precise but not over-clever.
  • Discriminated unions for responses/errors.
  • Avoid breaking changes; semver.
  • Docs via TSDoc; type tests.
Practise this topic

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

See all topics