UNPKG

@altostra/core

Version:

Core library for shared types and logic

10 lines (9 loc) 422 B
import type { EntityId } from "../../../CustomTypes/EntityId"; declare const locationIdSymbol: unique symbol; export declare type LocationId = EntityId & { [locationIdSymbol]: unknown; }; export declare function isLocationId(val: unknown): val is LocationId; export declare function validateLocationId(val: string): asserts val is LocationId; export declare function locationId(value?: string): LocationId; export {};