UNPKG

@winglet/json

Version:

TypeScript library for safe and efficient JSON data manipulation with RFC 6901 (JSON Pointer) and RFC 6902 (JSON Patch) compliance, featuring prototype pollution protection and immutable operations

10 lines (9 loc) 361 B
/** * JSON에서 허용되는 원시 타입들 * @see https://datatracker.ietf.org/doc/html/rfc7396 */ export type JsonPrimitive = string | number | boolean | null; export type JsonArray = Array<any>; export type JsonObject = Record<string, any>; export type JsonValue = JsonPrimitive | JsonArray | JsonObject; export type JsonRoot = JsonArray | JsonObject;