UNPKG

@loopback/context

Version:

Facilities to manage artifacts and their dependencies in your Node.js applications. The module exposes TypeScript/JavaScript APIs and decorators to register artifacts, declare dependencies, and resolve artifacts by keys. It also serves as an IoC container

29 lines (28 loc) 476 B
/** * 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> { }