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