decoders 1.26.0-test1 → 2.0.0-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -3
- package/cjs/_guard.js +26 -0
- package/cjs/_guard.js.flow +20 -0
- package/cjs/_types.js +1 -0
- package/cjs/_types.js.flow +20 -0
- package/cjs/_utils.js +108 -0
- package/cjs/_utils.js.flow +97 -0
- package/cjs/annotate.js +161 -0
- package/cjs/annotate.js.flow +218 -0
- package/cjs/format/index.js +12 -0
- package/cjs/format/index.js.flow +4 -0
- package/cjs/format/inline.js +146 -0
- package/cjs/format/inline.js.flow +122 -0
- package/cjs/format/short.js +10 -0
- package/cjs/format/short.js.flow +8 -0
- package/cjs/index.js +118 -395
- package/cjs/index.js.flow +31 -24
- package/cjs/result.js +172 -0
- package/cjs/result.js.flow +166 -0
- package/cjs/stdlib/array.js +108 -0
- package/cjs/{array.js.flow → stdlib/array.js.flow} +22 -25
- package/cjs/stdlib/boolean.js +44 -0
- package/cjs/{boolean.js.flow → stdlib/boolean.js.flow} +8 -7
- package/cjs/stdlib/composition.js +56 -0
- package/cjs/{utils.js.flow → stdlib/composition.js.flow} +7 -22
- package/cjs/stdlib/constants.js +69 -0
- package/cjs/{constants.js.flow → stdlib/constants.js.flow} +13 -12
- package/cjs/stdlib/date.js +46 -0
- package/cjs/{date.js.flow → stdlib/date.js.flow} +9 -7
- package/cjs/stdlib/describe.js +26 -0
- package/cjs/{describe.js.flow → stdlib/describe.js.flow} +4 -4
- package/cjs/stdlib/dispatch.js +62 -0
- package/cjs/{dispatch.js.flow → stdlib/dispatch.js.flow} +6 -5
- package/cjs/stdlib/either.js +117 -0
- package/cjs/{either.js.flow → stdlib/either.js.flow} +55 -35
- package/cjs/stdlib/fail.js +21 -0
- package/cjs/stdlib/fail.js.flow +12 -0
- package/cjs/stdlib/instanceOf.js +19 -0
- package/cjs/{instanceOf.js.flow → stdlib/instanceOf.js.flow} +7 -8
- package/cjs/{json.js → stdlib/json.js} +3 -5
- package/cjs/{json.js.flow → stdlib/json.js.flow} +4 -4
- package/cjs/{lazy.js → stdlib/lazy.js} +1 -3
- package/cjs/{lazy.js.flow → stdlib/lazy.js.flow} +1 -1
- package/cjs/stdlib/mapping.js +67 -0
- package/cjs/stdlib/mapping.js.flow +54 -0
- package/cjs/stdlib/number.js +40 -0
- package/cjs/{number.js.flow → stdlib/number.js.flow} +10 -11
- package/cjs/stdlib/object.js +194 -0
- package/cjs/{object.js.flow → stdlib/object.js.flow} +44 -52
- package/cjs/stdlib/optional.js +54 -0
- package/cjs/{optional.js.flow → stdlib/optional.js.flow} +6 -7
- package/cjs/stdlib/string.js +98 -0
- package/cjs/{string.js.flow → stdlib/string.js.flow} +13 -12
- package/cjs/stdlib/tuple.js +173 -0
- package/cjs/{tuple.js.flow → stdlib/tuple.js.flow} +62 -63
- package/es/_guard.js +15 -0
- package/es/_types.js +0 -0
- package/es/_utils.js +93 -0
- package/es/annotate.js +144 -0
- package/es/format/index.js +2 -0
- package/es/format/inline.js +137 -0
- package/es/format/short.js +4 -0
- package/es/index.js +36 -1211
- package/es/result.js +139 -0
- package/es/stdlib/array.js +91 -0
- package/es/stdlib/boolean.js +28 -0
- package/es/stdlib/composition.js +42 -0
- package/es/stdlib/constants.js +46 -0
- package/es/stdlib/date.js +28 -0
- package/{cjs → es/stdlib}/describe.js +5 -11
- package/{cjs → es/stdlib}/dispatch.js +8 -15
- package/es/stdlib/either.js +90 -0
- package/es/stdlib/fail.js +11 -0
- package/es/stdlib/instanceOf.js +8 -0
- package/es/stdlib/json.js +15 -0
- package/es/stdlib/lazy.js +11 -0
- package/es/stdlib/mapping.js +54 -0
- package/es/stdlib/number.js +25 -0
- package/es/stdlib/object.js +175 -0
- package/es/stdlib/optional.js +38 -0
- package/{cjs → es/stdlib}/string.js +18 -35
- package/es/stdlib/tuple.js +155 -0
- package/package.json +9 -5
- package/ts/_guard.d.ts +7 -0
- package/ts/{helpers.d.ts → _helpers.d.ts} +0 -0
- package/ts/{types.d.ts → _types.d.ts} +3 -5
- package/ts/{utils.d.ts → _utils.d.ts} +3 -3
- package/ts/annotate.d.ts +58 -0
- package/ts/array.d.ts +1 -1
- package/ts/boolean.d.ts +1 -1
- package/ts/constants.d.ts +1 -1
- package/ts/date.d.ts +1 -1
- package/ts/describe.d.ts +1 -1
- package/ts/dispatch.d.ts +3 -3
- package/ts/either.d.ts +8 -8
- package/ts/fail.d.ts +1 -1
- package/ts/index.d.ts +30 -26
- package/ts/inline.d.ts +3 -0
- package/ts/instanceOf.d.ts +1 -1
- package/ts/json.d.ts +1 -1
- package/ts/lazy.d.ts +1 -1
- package/ts/mapping.d.ts +1 -1
- package/ts/number.d.ts +1 -1
- package/ts/object.d.ts +6 -6
- package/ts/optional.d.ts +1 -1
- package/ts/result.d.ts +39 -0
- package/ts/short.d.ts +3 -0
- package/ts/string.d.ts +1 -1
- package/ts/tuple.d.ts +5 -5
- package/cjs/array.js +0 -133
- package/cjs/boolean.js +0 -42
- package/cjs/constants.js +0 -67
- package/cjs/date.js +0 -42
- package/cjs/either.js +0 -85
- package/cjs/fail.js +0 -19
- package/cjs/fail.js.flow +0 -13
- package/cjs/guard.js +0 -30
- package/cjs/guard.js.flow +0 -36
- package/cjs/instanceOf.js +0 -17
- package/cjs/mapping.js +0 -113
- package/cjs/mapping.js.flow +0 -71
- package/cjs/number.js +0 -38
- package/cjs/object.js +0 -254
- package/cjs/optional.js +0 -52
- package/cjs/tuple.js +0 -199
- package/cjs/types.js +0 -5
- package/cjs/types.js.flow +0 -26
- package/cjs/utils.js +0 -70
- package/ts/guard.d.ts +0 -7
package/cjs/index.js
CHANGED
|
@@ -1,397 +1,120 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
enumerable: true,
|
|
122
|
-
get: function get() {
|
|
123
|
-
return _guard.guard;
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
Object.defineProperty(exports, "hardcoded", {
|
|
127
|
-
enumerable: true,
|
|
128
|
-
get: function get() {
|
|
129
|
-
return _constants.hardcoded;
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
Object.defineProperty(exports, "inexact", {
|
|
133
|
-
enumerable: true,
|
|
134
|
-
get: function get() {
|
|
135
|
-
return _object.inexact;
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
Object.defineProperty(exports, "instanceOf", {
|
|
139
|
-
enumerable: true,
|
|
140
|
-
get: function get() {
|
|
141
|
-
return _instanceOf.instanceOf;
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
Object.defineProperty(exports, "integer", {
|
|
145
|
-
enumerable: true,
|
|
146
|
-
get: function get() {
|
|
147
|
-
return _number.integer;
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
Object.defineProperty(exports, "iso8601", {
|
|
151
|
-
enumerable: true,
|
|
152
|
-
get: function get() {
|
|
153
|
-
return _date.iso8601;
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
Object.defineProperty(exports, "json", {
|
|
157
|
-
enumerable: true,
|
|
158
|
-
get: function get() {
|
|
159
|
-
return _json.json;
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
Object.defineProperty(exports, "jsonArray", {
|
|
163
|
-
enumerable: true,
|
|
164
|
-
get: function get() {
|
|
165
|
-
return _json.jsonArray;
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
Object.defineProperty(exports, "jsonObject", {
|
|
169
|
-
enumerable: true,
|
|
170
|
-
get: function get() {
|
|
171
|
-
return _json.jsonObject;
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
Object.defineProperty(exports, "lazy", {
|
|
175
|
-
enumerable: true,
|
|
176
|
-
get: function get() {
|
|
177
|
-
return _lazy.lazy;
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
Object.defineProperty(exports, "map", {
|
|
181
|
-
enumerable: true,
|
|
182
|
-
get: function get() {
|
|
183
|
-
return _utils.map;
|
|
184
|
-
}
|
|
185
|
-
});
|
|
186
|
-
Object.defineProperty(exports, "mapping", {
|
|
187
|
-
enumerable: true,
|
|
188
|
-
get: function get() {
|
|
189
|
-
return _mapping.mapping;
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
Object.defineProperty(exports, "maybe", {
|
|
193
|
-
enumerable: true,
|
|
194
|
-
get: function get() {
|
|
195
|
-
return _optional.maybe;
|
|
196
|
-
}
|
|
197
|
-
});
|
|
198
|
-
Object.defineProperty(exports, "mixed", {
|
|
199
|
-
enumerable: true,
|
|
200
|
-
get: function get() {
|
|
201
|
-
return _constants.mixed;
|
|
202
|
-
}
|
|
203
|
-
});
|
|
204
|
-
Object.defineProperty(exports, "nonEmptyArray", {
|
|
205
|
-
enumerable: true,
|
|
206
|
-
get: function get() {
|
|
207
|
-
return _array.nonEmptyArray;
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
Object.defineProperty(exports, "nonEmptyString", {
|
|
211
|
-
enumerable: true,
|
|
212
|
-
get: function get() {
|
|
213
|
-
return _string.nonEmptyString;
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
Object.defineProperty(exports, "null_", {
|
|
217
|
-
enumerable: true,
|
|
218
|
-
get: function get() {
|
|
219
|
-
return _constants.null_;
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
|
-
Object.defineProperty(exports, "nullable", {
|
|
223
|
-
enumerable: true,
|
|
224
|
-
get: function get() {
|
|
225
|
-
return _optional.nullable;
|
|
226
|
-
}
|
|
227
|
-
});
|
|
228
|
-
Object.defineProperty(exports, "number", {
|
|
229
|
-
enumerable: true,
|
|
230
|
-
get: function get() {
|
|
231
|
-
return _number.number;
|
|
232
|
-
}
|
|
233
|
-
});
|
|
234
|
-
Object.defineProperty(exports, "numericBoolean", {
|
|
235
|
-
enumerable: true,
|
|
236
|
-
get: function get() {
|
|
237
|
-
return _boolean.numericBoolean;
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
Object.defineProperty(exports, "object", {
|
|
241
|
-
enumerable: true,
|
|
242
|
-
get: function get() {
|
|
243
|
-
return _object.object;
|
|
244
|
-
}
|
|
245
|
-
});
|
|
246
|
-
Object.defineProperty(exports, "oneOf", {
|
|
247
|
-
enumerable: true,
|
|
248
|
-
get: function get() {
|
|
249
|
-
return _either.oneOf;
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
Object.defineProperty(exports, "optional", {
|
|
253
|
-
enumerable: true,
|
|
254
|
-
get: function get() {
|
|
255
|
-
return _optional.optional;
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
Object.defineProperty(exports, "poja", {
|
|
259
|
-
enumerable: true,
|
|
260
|
-
get: function get() {
|
|
261
|
-
return _array.poja;
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
Object.defineProperty(exports, "pojo", {
|
|
265
|
-
enumerable: true,
|
|
266
|
-
get: function get() {
|
|
267
|
-
return _object.pojo;
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
Object.defineProperty(exports, "positiveInteger", {
|
|
271
|
-
enumerable: true,
|
|
272
|
-
get: function get() {
|
|
273
|
-
return _number.positiveInteger;
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
Object.defineProperty(exports, "positiveNumber", {
|
|
277
|
-
enumerable: true,
|
|
278
|
-
get: function get() {
|
|
279
|
-
return _number.positiveNumber;
|
|
280
|
-
}
|
|
281
|
-
});
|
|
282
|
-
Object.defineProperty(exports, "predicate", {
|
|
283
|
-
enumerable: true,
|
|
284
|
-
get: function get() {
|
|
285
|
-
return _utils.predicate;
|
|
286
|
-
}
|
|
287
|
-
});
|
|
288
|
-
Object.defineProperty(exports, "regex", {
|
|
289
|
-
enumerable: true,
|
|
290
|
-
get: function get() {
|
|
291
|
-
return _string.regex;
|
|
292
|
-
}
|
|
293
|
-
});
|
|
294
|
-
Object.defineProperty(exports, "string", {
|
|
295
|
-
enumerable: true,
|
|
296
|
-
get: function get() {
|
|
297
|
-
return _string.string;
|
|
298
|
-
}
|
|
299
|
-
});
|
|
300
|
-
Object.defineProperty(exports, "truthy", {
|
|
301
|
-
enumerable: true,
|
|
302
|
-
get: function get() {
|
|
303
|
-
return _boolean.truthy;
|
|
304
|
-
}
|
|
305
|
-
});
|
|
306
|
-
Object.defineProperty(exports, "tuple1", {
|
|
307
|
-
enumerable: true,
|
|
308
|
-
get: function get() {
|
|
309
|
-
return _tuple.tuple1;
|
|
310
|
-
}
|
|
311
|
-
});
|
|
312
|
-
Object.defineProperty(exports, "tuple2", {
|
|
313
|
-
enumerable: true,
|
|
314
|
-
get: function get() {
|
|
315
|
-
return _tuple.tuple2;
|
|
316
|
-
}
|
|
317
|
-
});
|
|
318
|
-
Object.defineProperty(exports, "tuple3", {
|
|
319
|
-
enumerable: true,
|
|
320
|
-
get: function get() {
|
|
321
|
-
return _tuple.tuple3;
|
|
322
|
-
}
|
|
323
|
-
});
|
|
324
|
-
Object.defineProperty(exports, "tuple4", {
|
|
325
|
-
enumerable: true,
|
|
326
|
-
get: function get() {
|
|
327
|
-
return _tuple.tuple4;
|
|
328
|
-
}
|
|
329
|
-
});
|
|
330
|
-
Object.defineProperty(exports, "tuple5", {
|
|
331
|
-
enumerable: true,
|
|
332
|
-
get: function get() {
|
|
333
|
-
return _tuple.tuple5;
|
|
334
|
-
}
|
|
335
|
-
});
|
|
336
|
-
Object.defineProperty(exports, "tuple6", {
|
|
337
|
-
enumerable: true,
|
|
338
|
-
get: function get() {
|
|
339
|
-
return _tuple.tuple6;
|
|
340
|
-
}
|
|
341
|
-
});
|
|
342
|
-
Object.defineProperty(exports, "undefined_", {
|
|
343
|
-
enumerable: true,
|
|
344
|
-
get: function get() {
|
|
345
|
-
return _constants.undefined_;
|
|
346
|
-
}
|
|
347
|
-
});
|
|
348
|
-
Object.defineProperty(exports, "unknown", {
|
|
349
|
-
enumerable: true,
|
|
350
|
-
get: function get() {
|
|
351
|
-
return _constants.unknown;
|
|
352
|
-
}
|
|
353
|
-
});
|
|
354
|
-
Object.defineProperty(exports, "url", {
|
|
355
|
-
enumerable: true,
|
|
356
|
-
get: function get() {
|
|
357
|
-
return _string.url;
|
|
358
|
-
}
|
|
359
|
-
});
|
|
360
|
-
|
|
361
|
-
var _guard = require("./guard");
|
|
362
|
-
|
|
363
|
-
var _utils = require("./utils");
|
|
364
|
-
|
|
365
|
-
var _array = require("./array");
|
|
366
|
-
|
|
367
|
-
var _boolean = require("./boolean");
|
|
368
|
-
|
|
369
|
-
var _constants = require("./constants");
|
|
370
|
-
|
|
371
|
-
var _date = require("./date");
|
|
372
|
-
|
|
373
|
-
var _describe = require("./describe");
|
|
374
|
-
|
|
375
|
-
var _dispatch = require("./dispatch");
|
|
376
|
-
|
|
377
|
-
var _either = require("./either");
|
|
378
|
-
|
|
379
|
-
var _fail = require("./fail");
|
|
380
|
-
|
|
381
|
-
var _instanceOf = require("./instanceOf");
|
|
382
|
-
|
|
383
|
-
var _json = require("./json");
|
|
384
|
-
|
|
385
|
-
var _lazy = require("./lazy");
|
|
386
|
-
|
|
387
|
-
var _mapping = require("./mapping");
|
|
388
|
-
|
|
389
|
-
var _number = require("./number");
|
|
390
|
-
|
|
391
|
-
var _object = require("./object");
|
|
392
|
-
|
|
393
|
-
var _optional = require("./optional");
|
|
394
|
-
|
|
395
|
-
var _string = require("./string");
|
|
396
|
-
|
|
397
|
-
var _tuple = require("./tuple");
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.url = exports.unknown = exports.undefined_ = exports.tuple6 = exports.tuple5 = exports.tuple4 = exports.tuple3 = exports.tuple2 = exports.tuple1 = exports.truthy = exports.string = exports.regex = exports.predicate = exports.positiveNumber = exports.positiveInteger = exports.pojo = exports.poja = exports.optional = exports.oneOf = exports.object = exports.numericBoolean = exports.number = exports.nullable = exports.null_ = exports.nonEmptyString = exports.nonEmptyArray = exports.mixed = exports.maybe = exports.mapping = exports.map = exports.lazy = exports.jsonObject = exports.jsonArray = exports.json = exports.iso8601 = exports.integer = exports.instanceOf = exports.inexact = exports.hardcoded = exports.guard = exports.fail = exports.exact = exports.email = exports.either9 = exports.either8 = exports.either7 = exports.either6 = exports.either5 = exports.either4 = exports.either3 = exports.either = exports.dispatch = exports.dict = exports.describe = exports.date = exports.constant = exports.compose = exports["boolean"] = exports.array = void 0;
|
|
5
|
+
|
|
6
|
+
var _guard = require("./_guard");
|
|
7
|
+
|
|
8
|
+
exports.guard = _guard.guard;
|
|
9
|
+
|
|
10
|
+
var _composition = require("./stdlib/composition");
|
|
11
|
+
|
|
12
|
+
exports.compose = _composition.compose;
|
|
13
|
+
exports.map = _composition.map;
|
|
14
|
+
exports.predicate = _composition.predicate;
|
|
15
|
+
|
|
16
|
+
var _array = require("./stdlib/array");
|
|
17
|
+
|
|
18
|
+
exports.array = _array.array;
|
|
19
|
+
exports.nonEmptyArray = _array.nonEmptyArray;
|
|
20
|
+
exports.poja = _array.poja;
|
|
21
|
+
|
|
22
|
+
var _boolean = require("./stdlib/boolean");
|
|
23
|
+
|
|
24
|
+
exports["boolean"] = _boolean["boolean"];
|
|
25
|
+
exports.numericBoolean = _boolean.numericBoolean;
|
|
26
|
+
exports.truthy = _boolean.truthy;
|
|
27
|
+
|
|
28
|
+
var _constants = require("./stdlib/constants");
|
|
29
|
+
|
|
30
|
+
exports.constant = _constants.constant;
|
|
31
|
+
exports.hardcoded = _constants.hardcoded;
|
|
32
|
+
exports.mixed = _constants.mixed;
|
|
33
|
+
exports.null_ = _constants.null_;
|
|
34
|
+
exports.undefined_ = _constants.undefined_;
|
|
35
|
+
exports.unknown = _constants.unknown;
|
|
36
|
+
|
|
37
|
+
var _date = require("./stdlib/date");
|
|
38
|
+
|
|
39
|
+
exports.date = _date.date;
|
|
40
|
+
exports.iso8601 = _date.iso8601;
|
|
41
|
+
|
|
42
|
+
var _describe = require("./stdlib/describe");
|
|
43
|
+
|
|
44
|
+
exports.describe = _describe.describe;
|
|
45
|
+
|
|
46
|
+
var _dispatch = require("./stdlib/dispatch");
|
|
47
|
+
|
|
48
|
+
exports.dispatch = _dispatch.dispatch;
|
|
49
|
+
|
|
50
|
+
var _either = require("./stdlib/either");
|
|
51
|
+
|
|
52
|
+
exports.either = _either.either;
|
|
53
|
+
exports.either3 = _either.either3;
|
|
54
|
+
exports.either4 = _either.either4;
|
|
55
|
+
exports.either5 = _either.either5;
|
|
56
|
+
exports.either6 = _either.either6;
|
|
57
|
+
exports.either7 = _either.either7;
|
|
58
|
+
exports.either8 = _either.either8;
|
|
59
|
+
exports.either9 = _either.either9;
|
|
60
|
+
exports.oneOf = _either.oneOf;
|
|
61
|
+
|
|
62
|
+
var _fail = require("./stdlib/fail");
|
|
63
|
+
|
|
64
|
+
exports.fail = _fail.fail;
|
|
65
|
+
|
|
66
|
+
var _instanceOf = require("./stdlib/instanceOf");
|
|
67
|
+
|
|
68
|
+
exports.instanceOf = _instanceOf.instanceOf;
|
|
69
|
+
|
|
70
|
+
var _json = require("./stdlib/json");
|
|
71
|
+
|
|
72
|
+
exports.json = _json.json;
|
|
73
|
+
exports.jsonObject = _json.jsonObject;
|
|
74
|
+
exports.jsonArray = _json.jsonArray;
|
|
75
|
+
|
|
76
|
+
var _lazy = require("./stdlib/lazy");
|
|
77
|
+
|
|
78
|
+
exports.lazy = _lazy.lazy;
|
|
79
|
+
|
|
80
|
+
var _mapping = require("./stdlib/mapping");
|
|
81
|
+
|
|
82
|
+
exports.mapping = _mapping.mapping;
|
|
83
|
+
exports.dict = _mapping.dict;
|
|
84
|
+
|
|
85
|
+
var _number = require("./stdlib/number");
|
|
86
|
+
|
|
87
|
+
exports.integer = _number.integer;
|
|
88
|
+
exports.number = _number.number;
|
|
89
|
+
exports.positiveInteger = _number.positiveInteger;
|
|
90
|
+
exports.positiveNumber = _number.positiveNumber;
|
|
91
|
+
|
|
92
|
+
var _object = require("./stdlib/object");
|
|
93
|
+
|
|
94
|
+
exports.exact = _object.exact;
|
|
95
|
+
exports.inexact = _object.inexact;
|
|
96
|
+
exports.object = _object.object;
|
|
97
|
+
exports.pojo = _object.pojo;
|
|
98
|
+
|
|
99
|
+
var _optional = require("./stdlib/optional");
|
|
100
|
+
|
|
101
|
+
exports.maybe = _optional.maybe;
|
|
102
|
+
exports.nullable = _optional.nullable;
|
|
103
|
+
exports.optional = _optional.optional;
|
|
104
|
+
|
|
105
|
+
var _string = require("./stdlib/string");
|
|
106
|
+
|
|
107
|
+
exports.email = _string.email;
|
|
108
|
+
exports.nonEmptyString = _string.nonEmptyString;
|
|
109
|
+
exports.regex = _string.regex;
|
|
110
|
+
exports.string = _string.string;
|
|
111
|
+
exports.url = _string.url;
|
|
112
|
+
|
|
113
|
+
var _tuple = require("./stdlib/tuple");
|
|
114
|
+
|
|
115
|
+
exports.tuple1 = _tuple.tuple1;
|
|
116
|
+
exports.tuple2 = _tuple.tuple2;
|
|
117
|
+
exports.tuple3 = _tuple.tuple3;
|
|
118
|
+
exports.tuple4 = _tuple.tuple4;
|
|
119
|
+
exports.tuple5 = _tuple.tuple5;
|
|
120
|
+
exports.tuple6 = _tuple.tuple6;
|
package/cjs/index.js.flow
CHANGED
|
@@ -18,17 +18,28 @@
|
|
|
18
18
|
* type. In our case, it's fine to fail with a runtime error.
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
export type { Decoder, Guard } from './_types';
|
|
22
|
+
export type { DecoderType, GuardType } from './_types';
|
|
22
23
|
|
|
23
|
-
export {
|
|
24
|
-
export { compose, map, predicate } from './utils';
|
|
24
|
+
export type { JSONValue, JSONObject, JSONArray } from './stdlib/json';
|
|
25
25
|
|
|
26
|
-
export {
|
|
27
|
-
|
|
28
|
-
export {
|
|
29
|
-
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
26
|
+
export { guard } from './_guard';
|
|
27
|
+
|
|
28
|
+
export { compose, map, predicate } from './stdlib/composition';
|
|
29
|
+
|
|
30
|
+
export { array, nonEmptyArray, poja } from './stdlib/array';
|
|
31
|
+
export { boolean, numericBoolean, truthy } from './stdlib/boolean';
|
|
32
|
+
export {
|
|
33
|
+
constant,
|
|
34
|
+
hardcoded,
|
|
35
|
+
mixed,
|
|
36
|
+
null_,
|
|
37
|
+
undefined_,
|
|
38
|
+
unknown,
|
|
39
|
+
} from './stdlib/constants';
|
|
40
|
+
export { date, iso8601 } from './stdlib/date';
|
|
41
|
+
export { describe } from './stdlib/describe';
|
|
42
|
+
export { dispatch } from './stdlib/dispatch';
|
|
32
43
|
export {
|
|
33
44
|
either,
|
|
34
45
|
either3,
|
|
@@ -39,18 +50,14 @@ export {
|
|
|
39
50
|
either8,
|
|
40
51
|
either9,
|
|
41
52
|
oneOf,
|
|
42
|
-
} from './either';
|
|
43
|
-
export { fail } from './fail';
|
|
44
|
-
export { instanceOf } from './instanceOf';
|
|
45
|
-
export { json, jsonObject, jsonArray } from './json';
|
|
46
|
-
export { lazy } from './lazy';
|
|
47
|
-
export { mapping, dict } from './mapping';
|
|
48
|
-
export { integer, number, positiveInteger, positiveNumber } from './number';
|
|
49
|
-
export { exact, inexact, object, pojo } from './object';
|
|
50
|
-
export { maybe, nullable, optional } from './optional';
|
|
51
|
-
export { email, nonEmptyString, regex, string, url } from './string';
|
|
52
|
-
export { tuple1, tuple2, tuple3, tuple4, tuple5, tuple6 } from './tuple';
|
|
53
|
-
|
|
54
|
-
export type { Decoder, Guard };
|
|
55
|
-
export type { $DecoderType, $GuardType };
|
|
56
|
-
export type { JSONValue, JSONObject, JSONArray } from './json';
|
|
53
|
+
} from './stdlib/either';
|
|
54
|
+
export { fail } from './stdlib/fail';
|
|
55
|
+
export { instanceOf } from './stdlib/instanceOf';
|
|
56
|
+
export { json, jsonObject, jsonArray } from './stdlib/json';
|
|
57
|
+
export { lazy } from './stdlib/lazy';
|
|
58
|
+
export { mapping, dict } from './stdlib/mapping';
|
|
59
|
+
export { integer, number, positiveInteger, positiveNumber } from './stdlib/number';
|
|
60
|
+
export { exact, inexact, object, pojo } from './stdlib/object';
|
|
61
|
+
export { maybe, nullable, optional } from './stdlib/optional';
|
|
62
|
+
export { email, nonEmptyString, regex, string, url } from './stdlib/string';
|
|
63
|
+
export { tuple1, tuple2, tuple3, tuple4, tuple5, tuple6 } from './stdlib/tuple';
|