synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
12 lines • 615 B
TypeScript
export type JSONPrimitiveType = string | number | boolean | null;
/**
* returns true iff the value is a primitive that could have been parsed from JSON
* i.e. is null, string, number, or boolean
*
* This is false for objects and arrays, as well as JavaScript types that are not valid JSON, like
* undefined, NaN, Infinity, Symbol, and functions
* @param value
*/
export declare function isJSONPrimitive(value: unknown): value is JSONPrimitiveType;
export declare function isJSONObjectAllPrimitiveKeys(value: object): value is Record<string, JSONPrimitiveType>;
//# sourceMappingURL=JSONRendererUtils.d.ts.map