Give string/number IDs a branded type so a `UserId` can't be passed where an `OrderId` is expected.
Why This Matters
Bare-string IDs are structurally interchangeable, so swapping a user id for an order id compiles cleanly and corrupts data at runtime.
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.