UNPKG

476 BTypeScriptView Raw
1/**
2 * Type definition for JSON types
3 */
4/**
5 * JSON primitive types:
6 * - string
7 * - number
8 * - boolean
9 * - null
10 */
11export type JSONPrimitive = string | number | boolean | null;
12/**
13 * JSON values
14 * - primitive
15 * - object
16 * - array
17 */
18export type JSONValue = JSONPrimitive | JSONObject | JSONArray;
19/**
20 * JSON object
21 */
22export interface JSONObject extends Record<string, JSONValue> {
23}
24/**
25 * JSON array
26 */
27export interface JSONArray extends Array<JSONValue> {
28}