@inward/context
Version:
LoopBack's container for Inversion of Control
36 lines (30 loc) • 674 B
text/typescript
// Copyright IBM Corp. 2020. All Rights Reserved.
// Node module: @inward/context
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
/**
* Type definition for JSON types
*/
/**
* JSON primitive types:
* - string
* - number
* - boolean
* - null
*/
export type JSONPrimitive = string | number | boolean | null;
/**
* JSON values
* - primitive
* - object
* - array
*/
export type JSONValue = JSONPrimitive | JSONObject | JSONArray;
/**
* JSON object
*/
export interface JSONObject extends Record<string, JSONValue> {}
/**
* JSON array
*/
export interface JSONArray extends Array<JSONValue> {}