@bconnorwhite/json-types
v1.0.5
Published
Type checking for json objects
Downloads
52
Maintainers
Readme
@bconnorwhite/json-types
Type checking for json objects
yarn add @bconnorwhite/json-typesAPI
import { isJSONObject, JSONObject, JSONValue, JSONArray } from "@bconnorwhite/json-types";
isJSONObject(object?: JSONValue): boolean;
type JSONObject = {
[key in string]?: JSONValue
};
type JSONValue = string | number | boolean | null | JSONObject | JSONArray;
interface JSONArray extends Array<JSONValue> {};
