UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

12 lines 615 B
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