UNPKG

682 BTypeScriptView Raw
1/**
2 * @since 0.5.14
3 */
4import * as t from 'io-ts'
5/**
6 * Copied from `fp-ts/Either` module.
7 *
8 * @since 0.5.14
9 */
10export declare type Json = boolean | number | string | null | JsonArray | JsonRecord
11/**
12 * @since 0.5.14
13 */
14export interface JsonRecord {
15 readonly [key: string]: Json
16}
17/**
18 * @since 0.5.14
19 */
20export interface JsonArray extends ReadonlyArray<Json> {}
21/**
22 * @since 0.5.15
23 */
24export declare const JsonArray: t.Type<JsonArray>
25/**
26 * @since 0.5.15
27 */
28export declare const JsonRecord: t.Type<JsonRecord>
29/**
30 * @since 0.5.15
31 */
32export declare const Json: t.Type<Json>
33/**
34 * @since 0.5.14
35 */
36export declare const JsonFromString: t.Type<Json, string, string>