Type Alias: JsonValue
Makaio Framework / contracts / JsonValue
Type Alias: JsonValue
Section titled “Type Alias: JsonValue”JsonValue =
string|number|boolean|null|JsonValue[] |object
Defined in: ../../../packages/contracts/src/shared/json-value.ts:16
JSON-safe value type shared by storage and runtime context contracts.
Restricting persisted values to JSON keeps the storage contracts aligned
with the actual serialization boundary instead of accepting runtime-only
values such as functions, Maps, or undefined.
The object branch intentionally stays broad (object) instead of requiring
an index signature. The runtime Zod schema remains the source of truth for
JSON validation, while the broader TypeScript type keeps regular DTOs and
typed fixtures assignable without forcing every interface in the codebase to
declare [key: string]: ....
Type Composition
Section titled “Type Composition”JsonValuestring | number | boolean | null | JsonValue[] | objectstringnumberbooleannullJsonValue[]object