ryuu.js
Version:
Ryuu JavaScript Utility Library
9 lines (7 loc) • 318 B
text/typescript
/**
* Loose approximation of a JSON type
* From the TypeScript discussion: https://github.com/Microsoft/TypeScript/issues/1897
*/
export type Json = boolean | number | string | null | JsonArray | JsonMap;
export interface JsonMap { [key: string]: Json; }
export interface JsonArray extends Array<Json> {}