Last active
May 25, 2019 03:51
-
-
Save shimataro/054ba691a84b3082e8d7be95dd01400c to your computer and use it in GitHub Desktop.
TypeScriptでJSON型
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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