@jsonjoy.com/json-type
Version:
High-performance JSON Pointer implementation
27 lines (26 loc) • 1.51 kB
TypeScript
import type { AnyType } from '../type/classes/AnyType';
import type { ArrType } from '../type/classes/ArrType';
import type { BinType } from '../type/classes/BinType';
import type { BoolType } from '../type/classes/BoolType';
import type { ConType } from '../type/classes/ConType';
import type { FnType } from '../type/classes/FnType';
import type { MapType } from '../type/classes/MapType';
import type { NumType } from '../type/classes/NumType';
import type { ObjType } from '../type/classes/ObjType';
import type { OrType } from '../type/classes/OrType';
import type { RefType } from '../type/classes/RefType';
import type { StrType } from '../type/classes/StrType';
import type { TupType } from '../type/classes/TupType';
export declare const any: (type: AnyType) => unknown;
export declare const arr: (type: ArrType<any>) => unknown[];
export declare const bin: (type: BinType<any>) => Uint8Array;
export declare const bool: (type: BoolType) => boolean;
export declare const const_: (type: ConType) => unknown;
export declare const fn: (type: FnType<any, any>) => unknown;
export declare const map: (type: MapType<any>) => Record<string, unknown>;
export declare const num: (type: NumType) => number;
export declare const obj: (type: ObjType<any>) => Record<string, unknown>;
export declare const or: (type: OrType<any>) => unknown;
export declare const ref: (type: RefType<any>) => unknown;
export declare const str: (type: StrType) => string;
export declare const tup: (type: TupType<any>) => unknown[];