@brimdata/zealot
Version:
The Javascript Client for Zed Lakes
21 lines (20 loc) • 818 B
TypeScript
import { TypeAlias } from "./type-alias";
import { TypeArray } from "./type-array";
import { TypeMap } from "./type-map";
import { TypeRecord } from "./type-record";
import { TypeSet } from "./type-set";
import { TypeUnion } from "./type-union";
import { TypeError } from "./type-error";
declare const containers: {
readonly record: typeof TypeRecord;
readonly array: typeof TypeArray;
readonly set: typeof TypeSet;
readonly union: typeof TypeUnion;
readonly map: typeof TypeMap;
readonly alias: typeof TypeAlias;
readonly error: typeof TypeError;
};
export declare function isContainerType(value: unknown): value is ContainerType;
export default containers;
export declare type ContainerName = keyof typeof containers;
export declare type ContainerType = typeof containers[ContainerName];