Flesh-out model on the backend
This commit is contained in:
@@ -3,8 +3,11 @@ import * as Brand from "./Brand";
|
||||
export type UUID = Brand.Branded<string, "UUID">;
|
||||
export const UUID = Brand.nominal<UUID>();
|
||||
|
||||
export type Sha256 = Brand.Branded<Uint8Array, "Sha256">;
|
||||
export const Sha256 = Brand.nominal<Sha256>();
|
||||
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>();
|
||||
|
||||
Reference in New Issue
Block a user