Merge branch 'main' into develop

This commit is contained in:
Alexandre Bodin 2023-11-21 20:21:43 +01:00
commit ed636a7ccf

View File

@ -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;