UNPKG

contexify

Version:

A TypeScript library providing a powerful dependency injection container with context-based IoC capabilities, inspired by LoopBack's Context system.

31 lines (29 loc) 514 B
/** * Type definition for JSON types */ /** * JSON primitive types: * - string * - number * - boolean * - null */ type JSONPrimitive = string | number | boolean | null; /** * JSON values * - primitive * - object * - array */ type JSONValue = JSONPrimitive | JSONObject | JSONArray; /** * JSON object */ interface JSONObject extends Record<string, JSONValue> { } /** * JSON array */ interface JSONArray extends Array<JSONValue> { } export type { JSONArray, JSONObject, JSONPrimitive, JSONValue };