UNPKG

@bconnorwhite/json-types

Version:
8 lines (7 loc) 298 B
export declare type JSONObject = { [key in string]?: JSONValue; }; export declare type JSONValue = string | number | boolean | null | JSONObject | JSONArray; export interface JSONArray extends Array<JSONValue> { } export declare function isJSONObject(object?: JSONValue): object is JSONObject;