json-p3
Version:
JSONPath, JSON Pointer and JSON Patch
26 lines (25 loc) • 659 B
TypeScript
/**
* Common types and type predicates.
*/
/**
* A JSON-like value.
*/
export type JSONValue = string | number | null | undefined | boolean | JSONValue[] | {
[key: string]: JSONValue;
};
/**
* A type predicate for the Array object.
*/
export declare function isArray(value: unknown): value is unknown[];
/**
* A type predicate for object.
*/
export declare function isObject(value: unknown): value is object;
/**
* A type predicate for a string primitive.
*/
export declare function isString(value: unknown): value is string;
/**
* A type predicate for a number primitive.
*/
export declare function isNumber(value: unknown): value is number;