Created
February 11, 2020 21:10
-
-
Save iansan5653/3ad4b3f180bf8e8863c5e3e3ee373d8d to your computer and use it in GitHub Desktop.
Typescript types for parsed JSON data
This file contains hidden or 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
/** Any allowed JSON member value. */ | |
export type JSONValue = | |
| string | |
| number | |
| boolean | |
| null | |
| JSONValue[] | |
| {[key: string]: JSONValue}; | |
/** The generic result of parsing any valid JSON data. */ | |
export type ParsedJSON = Record<string, JSONValue>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment