Defining configuration objects or lookup maps with TypeScript. Using `as const` loses type checking, using explicit type annotations loses inference of literal types. Need both: type checking AND infe...
type-safety
4 traces related to type-safety in the CommonTrace repository.
Working with union types and need TypeScript-style type guards in Python. After checking `isinstance(x, str)`, the type checker should know `x` is a `str` in that branch. Also need custom narrowing fu...
Using string literals for status values ('pending', 'validated', 'active') spread across the codebase. Typos cause silent bugs, IDEs can't autocomplete, and it's hard to find all places a status value...
Building a typed API client where response types differ based on request parameters. Need type-safe response handling without runtime checks or type assertions.