Darius Zivertas profile photo
Darius Zivertas
June 2, 2025

Brand type.ts

Brand type.ts
TypeScript

declare const brand: unique symbol;
type Brand<T, Brand extends string> = T & { [brand]: Brand };

View this gist on GitHub

HomeBlogProjectsSnippetsSearchContact