Loading topic
Email = string & { ... }. A brand is checked only by TypeScript, so you still need runtime validation before creating one.2 min readBrand<T, B> helper. A branded number is still a JavaScript number at runtime, but TypeScript treats its brand as a separate type.2 min readBrand<T, B> helper from the previous chapter.2 min read