29 lines
1.0 KiB
TypeScript
29 lines
1.0 KiB
TypeScript
import * as Brand from "./Brand";
|
|
|
|
export type UUID = Brand.Branded<string, "UUID">;
|
|
export const UUID = Brand.nominal<UUID>();
|
|
|
|
export type Sha256_Bin = Brand.Branded<Uint8Array, "Sha256">;
|
|
export const Sha256_Bin = Brand.nominal<Sha256_Bin>();
|
|
|
|
export type Sha256_Hex = Brand.Branded<string, "Sha256">;
|
|
export const Sha256_Hex = Brand.nominal<Sha256_Hex>();
|
|
|
|
export type AttachmentId = Brand.Branded<UUID, "AttachmentId">;
|
|
export const AttachmentId = Brand.nominal<AttachmentId>();
|
|
|
|
export type PieceId = Brand.Branded<UUID, "PieceId">;
|
|
export const PieceId = Brand.nominal<PieceId>();
|
|
|
|
export type RepertoireId = Brand.Branded<UUID, "RepertoireId">;
|
|
export const RepertoireId = Brand.nominal<RepertoireId>();
|
|
|
|
export type RequestId = Brand.Branded<UUID, "RequestId">;
|
|
export const RequestId = Brand.nominal<RequestId>();
|
|
|
|
export type SessionId = Brand.Branded<string, "SessionId">;
|
|
export const SessionId = Brand.nominal<SessionId>();
|
|
|
|
export type UserId = Brand.Branded<UUID, "UserId">;
|
|
export const UserId = Brand.nominal<UserId>();
|