is-what icon indicating copy to clipboard operation
is-what copied to clipboard

add JSONObject type

Open mesqueeb opened this issue 5 years ago • 1 comments

type Primitive =
  | bigint
  | boolean
  | null
  | number
  | string
  | symbol
  | undefined;

type JSONValue = Primitive | JSONObject | JSONArray;

interface JSONObject {
  [key: string]: JSONValue;
}

interface JSONArray extends Array<JSONValue> { }

mesqueeb avatar Sep 02 '20 00:09 mesqueeb

Would this be added to a isJSONObject() and friends collection of checking functions?

jcbhmr avatar Jun 02 '23 23:06 jcbhmr