@altostra/core
Version:
Core library for shared types and logic
10 lines (9 loc) • 446 B
TypeScript
import type { EntityId } from "../../CustomTypes/EntityId";
declare const environmentIdSymbol: unique symbol;
export declare type EnvironmentId = EntityId & {
[environmentIdSymbol]: unknown;
};
export declare function isEnvironmentId(val: unknown): val is EnvironmentId;
export declare function validateEnvironmentId(val: string): asserts val is EnvironmentId;
export declare function environmentId(value?: string): EnvironmentId;
export {};