@altostra/core
Version:
Core library for shared types and logic
10 lines (9 loc) • 477 B
TypeScript
import type { NonEmptyString } from "../../../../common/CustomTypes/NonEmptyString";
declare const endpointLabelSym: unique symbol;
export declare type EndpointLabel = NonEmptyString & {
[endpointLabelSym]: unknown;
};
export declare function isEndpointLabel(value: unknown): value is EndpointLabel;
export declare function assertEndpointLabel(value: unknown): asserts value is EndpointLabel;
export declare function endpointLabel(value: string): EndpointLabel;
export {};