Commit d56ea9e1 authored by mohoff's avatar mohoff Committed by chapati

chore: use circular types for JSON

parent a3a120e4
// TODO: These types be improved once recursive type references are released (https://github.com/microsoft/TypeScript/pull/33050)
type JSON = string | number | boolean | null | JSON[] | { [key: string]: JSON }
export type JSONObject = { [key: string]: JSON }
// eslint-disable-next-line @typescript-eslint/no-empty-interface
interface JSONArray extends Array<JSONValue> {}
type JSONValue = string | number | boolean | JSONObject | JSONArray
export interface JSONObject {
[x: string]: JSONValue
}
export type BaseConfig = JSONObject
export type Schema = JSONObject
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment