> no one wants the client to throw type errors where the untyped code would have actually worked
That’s not how TypeScript works. You execute it after erasing the types.
Unless you use enums, of course.
Unless you use enums, of course.