apiful
Version:
Extensible, typed API tooling
7 lines • 364 B
TypeScript
//#region src/utils/types.d.ts
type JsonObject = { [Key in string]: JsonValue } & { [Key in string]?: JsonValue | undefined };
type JsonArray = JsonValue[] | readonly JsonValue[];
type JsonPrimitive = string | number | boolean | null;
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
//#endregion
export { JsonArray, JsonObject, JsonPrimitive, JsonValue };