UNPKG

@altostra/core

Version:

Core library for shared types and logic

10 lines (9 loc) 446 B
import type { EntityId } from "../../CustomTypes/EntityId"; declare const integrationIdSymbol: unique symbol; export declare type IntegrationId = EntityId & { [integrationIdSymbol]: unknown; }; export declare function isIntegrationId(val: unknown): val is IntegrationId; export declare function validateIntegrationId(val: string): asserts val is IntegrationId; export declare function integrationId(value?: string): IntegrationId; export {};