mirror of
https://github.com/strapi/strapi.git
synced 2025-09-08 16:16:21 +00:00
Merge branch 'main' into develop
This commit is contained in:
commit
ed636a7ccf
@ -9,6 +9,14 @@ export type JSON = Attribute.OfType<'json'> &
|
||||
Attribute.VisibleOption &
|
||||
Attribute.DefaultOption<JsonValue>;
|
||||
|
||||
export type JsonValue<T extends object = object> = T;
|
||||
type JSONValue = string | number | boolean | null | JSONObject | JSONArray;
|
||||
|
||||
type JSONArray = Array<JSONValue>;
|
||||
|
||||
interface JSONObject {
|
||||
[key: string]: JSONValue;
|
||||
}
|
||||
|
||||
export type JsonValue<T extends JSONValue = JSONValue> = T;
|
||||
|
||||
export type GetJsonValue<T extends Attribute.Attribute> = T extends JSON ? JsonValue : never;
|
||||
|
Loading…
x
Reference in New Issue
Block a user