Типизация JSON
type JSONPrimitive = string | number | boolean | null;
type JSONObject = {
[key: string]: JSONValue;
}
type JSONArray = JSONValue[];
type JSONValue = JSONPrimitive | JSONObject | JSONArray;
type JSONPrimitive = string | number | boolean | null;
type JSONObject = {
[key: string]: JSONValue;
}
type JSONArray = JSONValue[];
type JSONValue = JSONPrimitive | JSONObject | JSONArray;