Skip to content
Medium
Opaque/branded types

Branded IDs

Brand string IDs to avoid mixing domains, and show functions that only accept the right branded ID.

Solution

Loading...
Run your code to see output and diagnostics.

Built by Antigravity. The source code is available on GitHub.