Skip to content

Instantly share code, notes, and snippets.

@shimataro
Last active May 25, 2019 03:51
Show Gist options
  • Save shimataro/054ba691a84b3082e8d7be95dd01400c to your computer and use it in GitHub Desktop.
Save shimataro/054ba691a84b3082e8d7be95dd01400c to your computer and use it in GitHub Desktop.
TypeScriptでJSON型
type json = null | boolean | number | string | JsonArray | JsonObject;
interface JsonArray extends Array<json> {
}
interface JsonObject {
[key: string]: json;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment