Mehdi Akiki

Posts tagged "best-practices"

  • Published on
    Most API errors are written for a human reading logs, not for the program that has to react. Here is what most APIs do, what the standard says, and the small set of rules that actually make errors useful.
  • Published on
    Learn how to work with React component props in TypeScript using the ComponentProps utility to streamline prop handling, even when the prop type isn't exported.
  • Published on
    The `never` type in TypeScript represents a value that never occurs. It is used for functions that never return, throw exceptions, or have unreachable code paths.