@altostra/core
Version:
Core library for shared types and logic
14 lines (13 loc) • 572 B
TypeScript
import type { EntityId } from "../../CustomTypes/EntityId";
declare const altostraAccountIdSymbol: unique symbol;
/**
* Altostra Account ID refers only to customer accounts of Altostra.
* These IDs are owned by an Accounts/Users service and are only represented
* here as this domain entity.
*/
export declare type AltostraAccountId = EntityId & {
[altostraAccountIdSymbol]: unknown;
};
export declare function isAltostraAccountId(value: unknown): value is AltostraAccountId;
export declare function altostraAccountId(value: string): AltostraAccountId;
export {};