Skip to content

Instantly share code, notes, and snippets.

@srdjan
Created January 25, 2019 23:55
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 srdjan/3578234b3b81548c3f084233effef8a9 to your computer and use it in GitHub Desktop.
Save srdjan/3578234b3b81548c3f084233effef8a9 to your computer and use it in GitHub Desktop.
type JSValue = { kind: 'JSNull' }
| { kind: 'JSBool', value: boolean }
| { kind: 'JSString', value: string }
| { kind: 'JSRational', asFloat: boolean, value: number }
| { kind: 'JSArray', value: JSValue[] }
| { kind: 'JSObject', value: { [key: string]: JSValue } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment