mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-06-02 13:13:43 -04:00
8 lines
201 B
TypeScript
8 lines
201 B
TypeScript
declare const brand: unique symbol;
|
|
|
|
type Branded<T, B> = T & { [brand]: B };
|
|
|
|
export type ShortId = Branded<string, "ShortId">;
|
|
|
|
export const asShortId = (value: string): ShortId => value as ShortId;
|