Skip to content

Instantly share code, notes, and snippets.

@kdaisho
Last active August 27, 2023 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kdaisho/1ae9d24627ac0bf7499eab590a719f13 to your computer and use it in GitHub Desktop.
Save kdaisho/1ae9d24627ac0bf7499eab590a719f13 to your computer and use it in GitHub Desktop.
JSON Type
type Primitive = string | number | boolean | null
type JsonObject = { [k: string]: JsonValue }
type JsonArray = JsonValue[]
export type JsonValue = Primitive | JsonArray | JsonObject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment