Effect CommunityEC
Effect Community2y ago
11 replies
Aleks M

TypeScript Compiler Config for Branded Types

Any special TypeScript compiler config required to get branded types to work?
export type BundleUsers = number & Brand.Brand<'BundleUsers'>

const a: BundleUsers = 10 // This doesn't trigger compile error :(
Was this page helpful?