diff --git a/packages/core/types/src/types/core/attributes/json.ts b/packages/core/types/src/types/core/attributes/json.ts index e704de752a..e129ca02a0 100644 --- a/packages/core/types/src/types/core/attributes/json.ts +++ b/packages/core/types/src/types/core/attributes/json.ts @@ -9,6 +9,14 @@ export type JSON = Attribute.OfType<'json'> & Attribute.VisibleOption & Attribute.DefaultOption; -export type JsonValue = T; +type JSONValue = string | number | boolean | null | JSONObject | JSONArray; + +type JSONArray = Array; + +interface JSONObject { + [key: string]: JSONValue; +} + +export type JsonValue = T; export type GetJsonValue = T extends JSON ? JsonValue : never;