Socket
Socket
Sign inDemoInstall

io-ts

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

io-ts - npm Package Compare versions

Comparing version 2.2.5 to 2.2.6

7

CHANGELOG.md

@@ -17,2 +17,9 @@ # Changelog

# 2.2.6
- **Experimental**
- `Decoder`
- add support for non-`string` tag values to `sum`, closes #481 (@gcanti)
- `intersection` should accumulate all errors (@gcanti)
# 2.2.5

@@ -19,0 +26,0 @@

@@ -14,2 +14,3 @@ /**

*
* @category model
* @since 2.2.3

@@ -28,2 +29,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -33,2 +35,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -38,2 +41,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -43,2 +47,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -48,2 +53,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -53,2 +59,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -58,2 +65,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -63,2 +71,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -68,2 +77,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -73,2 +83,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -78,2 +89,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -83,2 +95,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -92,2 +105,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -101,2 +115,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -106,2 +121,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -111,2 +127,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -120,2 +137,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -125,2 +143,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -130,2 +149,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -135,2 +155,3 @@ */

/**
* @category Invariant
* @since 2.2.3

@@ -140,2 +161,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -145,2 +167,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -155,4 +178,5 @@ */

/**
* @category instances
* @since 2.2.3
*/
export declare const invariantCodec: Invariant2<URI>;

24

es6/Codec.js

@@ -8,2 +8,3 @@ import * as D from './Decoder';

/**
* @category constructors
* @since 2.2.3

@@ -18,2 +19,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -28,2 +30,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -42,2 +45,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -47,2 +51,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -52,2 +57,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -57,2 +63,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -62,2 +69,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -70,2 +78,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -77,2 +86,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -84,2 +94,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -91,2 +102,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -99,6 +111,7 @@ */

/**
* @category combinators
* @since 2.2.3
*/
export function partial(properties) {
// these tow `any`s are required to make typescript@3.5 compile
// these two `any`s are required to make typescript@3.5 compile
// vvvvvv vvvvvv

@@ -108,2 +121,3 @@ return make(D.partial(properties), E.partial(properties));

/**
* @category combinators
* @since 2.2.3

@@ -115,2 +129,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -122,2 +137,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -135,2 +151,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -142,2 +159,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -151,2 +169,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -161,2 +180,3 @@ */

/**
* @category Invariant
* @since 2.2.3

@@ -174,2 +194,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -179,2 +200,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -181,0 +203,0 @@ */

/**
* @since 2.2.0
*/
import { Either } from 'fp-ts/es6/Either';
import * as E from 'fp-ts/es6/Either';
import { NonEmptyArray } from 'fp-ts/es6/NonEmptyArray';

@@ -11,8 +11,5 @@ import { Forest, Tree } from 'fp-ts/es6/Tree';

import { Alt1 } from 'fp-ts/es6/Alt';
import Either = E.Either;
/**
* @since 2.2.2
*/
export interface DecodeError extends NonEmptyArray<Tree<string>> {
}
/**
* @category model
* @since 2.2.0

@@ -28,2 +25,9 @@ */

/**
* @category DecodeError
* @since 2.2.2
*/
export interface DecodeError extends NonEmptyArray<Tree<string>> {
}
/**
* @category DecodeError
* @since 2.2.0

@@ -33,2 +37,3 @@ */

/**
* @category DecodeError
* @since 2.2.0

@@ -38,2 +43,3 @@ */

/**
* @category DecodeError
* @since 2.2.0

@@ -43,2 +49,3 @@ */

/**
* @category DecodeError
* @since 2.2.2

@@ -48,2 +55,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -53,2 +61,3 @@ */

/**
* @category constructors
* @since 2.2.0

@@ -58,2 +67,3 @@ */

/**
* @category constructors
* @since 2.2.0

@@ -63,2 +73,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -68,2 +79,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -73,2 +85,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -78,2 +91,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -83,2 +97,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -88,2 +103,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -93,2 +109,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -98,2 +115,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -103,2 +121,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -108,2 +127,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -113,2 +133,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -122,2 +143,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -131,2 +153,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -136,2 +159,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -141,2 +165,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -148,2 +173,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -153,2 +179,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -158,2 +185,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -165,2 +193,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -172,2 +201,3 @@ */

/**
* @category Functor
* @since 2.2.0

@@ -177,2 +207,3 @@ */

/**
* @category Alt
* @since 2.2.0

@@ -182,2 +213,3 @@ */

/**
* @category instances
* @since 2.2.0

@@ -187,2 +219,3 @@ */

/**
* @category instances
* @since 2.2.0

@@ -197,2 +230,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -202,2 +236,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -207,4 +242,5 @@ */

/**
* @category instances
* @since 2.2.3
*/
export declare const schemableDecoder: Schemable1<URI> & WithUnknownContainers1<URI> & WithUnion1<URI> & WithRefinement1<URI>;

105

es6/Decoder.js
/**
* @since 2.2.0
*/
import { isLeft, isRight, left, mapLeft, right } from 'fp-ts/es6/Either';
import * as E from 'fp-ts/es6/Either';
import { pipe } from 'fp-ts/es6/pipeable';
import * as G from './Guard';
import { memoize } from './Schemable';
// -------------------------------------------------------------------------------------
// DecodeError
// -------------------------------------------------------------------------------------
var empty = [];
/**
* @category DecodeError
* @since 2.2.0

@@ -23,14 +21,17 @@ */

/**
* @category DecodeError
* @since 2.2.0
*/
export function success(a) {
return right(a);
return E.right(a);
}
/**
* @category DecodeError
* @since 2.2.0
*/
export function failure(message) {
return left([tree(message)]);
return E.left([tree(message)]);
}
/**
* @category DecodeError
* @since 2.2.2

@@ -45,2 +46,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -54,2 +56,3 @@ */

/**
* @category constructors
* @since 2.2.0

@@ -63,2 +66,3 @@ */

/**
* @category constructors
* @since 2.2.0

@@ -82,2 +86,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -87,2 +92,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -92,2 +98,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -97,2 +104,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -102,2 +110,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -107,2 +116,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -115,2 +125,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -121,3 +132,3 @@ */

decode: function (u) {
return pipe(decoder.decode(u), mapLeft(function (nea) { return expected(u, nea); }));
return pipe(decoder.decode(u), E.mapLeft(function (nea) { return expected(u, nea); }));
}

@@ -127,2 +138,3 @@ };

/**
* @category combinators
* @since 2.2.0

@@ -134,3 +146,3 @@ */

var e = from.decode(u);
if (isLeft(e)) {
if (E.isLeft(e)) {
return e;

@@ -144,2 +156,3 @@ }

/**
* @category combinators
* @since 2.2.0

@@ -151,7 +164,7 @@ */

var e = from.decode(u);
if (isLeft(e)) {
if (E.isLeft(e)) {
return e;
}
var pe = parser(e.right);
if (isLeft(pe)) {
if (E.isLeft(pe)) {
return failure(pe.left);

@@ -164,2 +177,3 @@ }

/**
* @category combinators
* @since 2.2.0

@@ -171,2 +185,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -178,3 +193,3 @@ */

var e = UnknownRecord.decode(u);
if (isLeft(e)) {
if (E.isLeft(e)) {
return e;

@@ -188,3 +203,3 @@ }

var e_1 = properties[k].decode(r[k]);
if (isLeft(e_1)) {
if (E.isLeft(e_1)) {
errors.push(tree("required property " + JSON.stringify(k), e_1.left));

@@ -196,3 +211,3 @@ }

}
return isNotEmpty(errors) ? left(errors) : success(a);
return isNotEmpty(errors) ? E.left(errors) : success(a);
}

@@ -203,2 +218,3 @@ }

/**
* @category combinators
* @since 2.2.0

@@ -210,3 +226,3 @@ */

var e = UnknownRecord.decode(u);
if (isLeft(e)) {
if (E.isLeft(e)) {
return e;

@@ -228,3 +244,3 @@ }

var e_2 = properties[k].decode(rk);
if (isLeft(e_2)) {
if (E.isLeft(e_2)) {
errors.push(tree("optional property " + JSON.stringify(k), e_2.left));

@@ -238,3 +254,3 @@ }

}
return isNotEmpty(errors) ? left(errors) : success(a);
return isNotEmpty(errors) ? E.left(errors) : success(a);
}

@@ -245,2 +261,3 @@ }

/**
* @category combinators
* @since 2.2.0

@@ -252,3 +269,3 @@ */

var e = UnknownRecord.decode(u);
if (isLeft(e)) {
if (E.isLeft(e)) {
return e;

@@ -262,3 +279,3 @@ }

var e_3 = codomain.decode(r[k]);
if (isLeft(e_3)) {
if (E.isLeft(e_3)) {
errors.push(tree("key " + JSON.stringify(k), e_3.left));

@@ -270,3 +287,3 @@ }

}
return isNotEmpty(errors) ? left(errors) : success(a);
return isNotEmpty(errors) ? E.left(errors) : success(a);
}

@@ -277,2 +294,3 @@ }

/**
* @category combinators
* @since 2.2.0

@@ -284,3 +302,3 @@ */

var e = UnknownArray.decode(u);
if (isLeft(e)) {
if (E.isLeft(e)) {
return e;

@@ -295,3 +313,3 @@ }

var e_4 = items.decode(us[i]);
if (isLeft(e_4)) {
if (E.isLeft(e_4)) {
errors.push(tree("item " + i, e_4.left));

@@ -303,3 +321,3 @@ }

}
return isNotEmpty(errors) ? left(errors) : success(a);
return isNotEmpty(errors) ? E.left(errors) : success(a);
}

@@ -310,2 +328,3 @@ }

/**
* @category combinators
* @since 2.2.0

@@ -321,3 +340,3 @@ */

var e = UnknownArray.decode(u);
if (isLeft(e)) {
if (E.isLeft(e)) {
return e;

@@ -330,3 +349,3 @@ }

var e_5 = components[i].decode(us[i]);
if (isLeft(e_5)) {
if (E.isLeft(e_5)) {
errors.push(tree("component " + i, e_5.left));

@@ -338,3 +357,3 @@ }

}
return isNotEmpty(errors) ? left(errors) : success(a);
return isNotEmpty(errors) ? E.left(errors) : success(a);
}

@@ -360,2 +379,3 @@ };

/**
* @category combinators
* @since 2.2.0

@@ -367,7 +387,7 @@ */

var ea = left.decode(u);
if (isLeft(ea)) {
return ea;
var eb = right.decode(u);
if (E.isLeft(ea)) {
return E.isLeft(eb) ? E.left(ea.left.concat(eb.left)) : ea;
}
var eb = right.decode(u);
if (isLeft(eb)) {
if (E.isLeft(eb)) {
return eb;

@@ -380,2 +400,3 @@ }

/**
* @category combinators
* @since 2.2.0

@@ -387,3 +408,3 @@ */

decode: function (u) {
return pipe(get().decode(u), mapLeft(function (nea) { return [tree(id, nea)]; }));
return pipe(get().decode(u), E.mapLeft(function (nea) { return [tree(id, nea)]; }));
}

@@ -393,2 +414,3 @@ };

/**
* @category combinators
* @since 2.2.0

@@ -406,10 +428,10 @@ */

var e = UnknownRecord.decode(u);
if (isLeft(e)) {
if (E.isLeft(e)) {
return e;
}
var v = e.right[tag];
if (G.string.is(v) && v in members) {
if (v in members) {
return members[v].decode(u);
}
return left([
return E.left([
tree("required property " + JSON.stringify(tag), [

@@ -424,2 +446,3 @@ tree("cannot decode " + JSON.stringify(v) + ", should be " + expected)

/**
* @category combinators
* @since 2.2.0

@@ -439,3 +462,3 @@ */

var e = members[0].decode(u);
if (isRight(e)) {
if (E.isRight(e)) {
return e;

@@ -447,3 +470,3 @@ }

var e_6 = members[i].decode(u);
if (isRight(e_6)) {
if (E.isRight(e_6)) {
return e_6;

@@ -455,3 +478,3 @@ }

}
return left(errors);
return E.left(errors);
}

@@ -465,2 +488,3 @@ }

/**
* @category Functor
* @since 2.2.0

@@ -472,6 +496,7 @@ */

var e = fa.decode(u);
return isLeft(e) ? e : right(f(e.right));
return E.isLeft(e) ? e : E.right(f(e.right));
}
}); };
/**
* @category Alt
* @since 2.2.0

@@ -483,3 +508,3 @@ */

var e = fx.decode(u);
return isLeft(e) ? fy().decode(u) : e;
return E.isLeft(e) ? fy().decode(u) : e;
}

@@ -491,2 +516,3 @@ }); };

/**
* @category instances
* @since 2.2.0

@@ -496,2 +522,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -504,2 +531,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -513,2 +541,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -515,0 +544,0 @@ */

@@ -7,2 +7,3 @@ /**

/**
* @category model
* @since 2.2.3

@@ -22,2 +23,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -27,2 +29,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -32,2 +35,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -41,2 +45,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -50,2 +55,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -55,2 +61,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -60,2 +67,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -69,2 +77,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -74,2 +83,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -79,2 +89,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -84,2 +95,3 @@ */

/**
* @category Contravariant
* @since 2.2.3

@@ -89,2 +101,3 @@ */

/**
* @category Semigroupoid
* @since 2.2.3

@@ -94,2 +107,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -99,2 +113,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -109,2 +124,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -114,4 +130,5 @@ */

/**
* @category instances
* @since 2.2.3
*/
export declare const categoryEncoder: Category2<URI>;

@@ -8,2 +8,3 @@ import { intersect } from './Decoder';

/**
* @category constructors
* @since 2.2.3

@@ -20,2 +21,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -29,2 +31,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -44,2 +47,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -64,2 +68,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -79,2 +84,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -88,2 +94,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -101,2 +108,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -110,2 +118,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -121,2 +130,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -134,2 +144,3 @@ */

/**
* @category Contravariant
* @since 2.2.3

@@ -144,2 +155,3 @@ */

/**
* @category Semigroupoid
* @since 2.2.3

@@ -157,2 +169,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -162,2 +175,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -170,2 +184,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -172,0 +187,0 @@ */

@@ -13,2 +13,3 @@ import * as E from 'fp-ts/es6/Eq';

/**
* @category primitives
* @since 2.2.2

@@ -18,2 +19,3 @@ */

/**
* @category primitives
* @since 2.2.2

@@ -23,2 +25,3 @@ */

/**
* @category primitives
* @since 2.2.2

@@ -28,2 +31,3 @@ */

/**
* @category primitives
* @since 2.2.2

@@ -33,2 +37,3 @@ */

/**
* @category primitives
* @since 2.2.2

@@ -38,2 +43,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -43,2 +49,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -52,2 +59,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -61,2 +69,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -66,2 +75,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -71,2 +81,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -78,2 +89,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -83,2 +95,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -90,2 +103,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -95,4 +109,5 @@ */

/**
* @category instances
* @since 2.2.3
*/
export declare const schemableEq: Schemable1<E.URI> & WithUnknownContainers1<E.URI> & WithRefinement1<E.URI>;

@@ -12,2 +12,3 @@ /**

/**
* @category primitives
* @since 2.2.2

@@ -17,2 +18,3 @@ */

/**
* @category primitives
* @since 2.2.2

@@ -22,2 +24,3 @@ */

/**
* @category primitives
* @since 2.2.2

@@ -27,2 +30,3 @@ */

/**
* @category primitives
* @since 2.2.2

@@ -32,2 +36,3 @@ */

/**
* @category primitives
* @since 2.2.2

@@ -52,2 +57,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -61,2 +67,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -66,2 +73,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -84,2 +92,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -89,2 +98,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -94,2 +104,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -99,2 +110,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -108,2 +120,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -126,2 +139,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -139,2 +153,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -141,0 +156,0 @@ */

@@ -6,2 +6,3 @@ /**

/**
* @category model
* @since 2.2.0

@@ -17,2 +18,3 @@ */

/**
* @category constructors
* @since 2.2.0

@@ -22,2 +24,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -27,2 +30,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -32,2 +36,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -37,2 +42,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -42,2 +48,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -47,2 +54,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -52,2 +60,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -57,2 +66,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -62,2 +72,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -71,2 +82,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -80,2 +92,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -85,2 +98,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -90,2 +104,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -97,2 +112,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -102,2 +118,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -109,2 +126,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -116,2 +134,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -121,2 +140,3 @@ */

/**
* @category instances
* @since 2.2.0

@@ -126,2 +146,3 @@ */

/**
* @category instances
* @since 2.2.0

@@ -136,4 +157,5 @@ */

/**
* @category instances
* @since 2.2.3
*/
export declare const schemableGuard: Schemable1<URI> & WithUnknownContainers1<URI> & WithUnion1<URI> & WithRefinement1<URI>;

@@ -9,2 +9,3 @@ /**

/**
* @category constructors
* @since 2.2.0

@@ -25,2 +26,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -32,2 +34,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -39,2 +42,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -46,2 +50,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -53,2 +58,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -60,2 +66,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -70,2 +77,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -79,2 +87,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -88,2 +97,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -102,2 +112,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -117,2 +128,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -131,2 +143,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -138,2 +151,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -151,2 +165,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -160,2 +175,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -173,2 +189,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -180,3 +197,3 @@ */

var v = r[tag];
if (string.is(v) && v in members) {
if (v in members) {
return members[v].is(r);

@@ -189,2 +206,3 @@ }

/**
* @category combinators
* @since 2.2.0

@@ -202,2 +220,3 @@ */

/**
* @category instances
* @since 2.2.0

@@ -207,2 +226,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -209,0 +229,0 @@ */

@@ -7,2 +7,3 @@ /**

/**
* @category Model
* @since 1.0.0

@@ -17,2 +18,3 @@ */

/**
* @category Model
* @since 1.0.0

@@ -23,2 +25,3 @@ */

/**
* @category Model
* @since 1.0.0

@@ -35,2 +38,3 @@ */

/**
* @category Model
* @since 1.0.0

@@ -41,2 +45,3 @@ */

/**
* @category Model
* @since 1.0.0

@@ -46,2 +51,3 @@ */

/**
* @category Model
* @since 1.0.0

@@ -51,2 +57,3 @@ */

/**
* @category Model
* @since 1.0.0

@@ -56,2 +63,3 @@ */

/**
* @category Model
* @since 1.0.0

@@ -61,2 +69,3 @@ */

/**
* @category Model
* @since 1.0.0

@@ -88,2 +97,3 @@ */

/**
* @category Model
* @since 1.0.0

@@ -97,2 +107,3 @@ */

/**
* @category Model
* @since 1.0.0

@@ -104,2 +115,3 @@ */

/**
* @category Model
* @since 1.0.0

@@ -199,2 +211,3 @@ */

/**
* @category Primitives
* @since 1.0.0

@@ -235,2 +248,3 @@ */

/**
* @category Primitives
* @since 1.2.0

@@ -255,2 +269,3 @@ */

/**
* @category Primitives
* @since 1.5.0

@@ -275,2 +290,3 @@ */

/**
* @category Primitives
* @since 1.0.0

@@ -295,2 +311,3 @@ */

/**
* @category Primitives
* @since 1.0.0

@@ -315,2 +332,3 @@ */

/**
* @category Primitives
* @since 2.1.0

@@ -335,2 +353,3 @@ */

/**
* @category Primitives
* @since 1.0.0

@@ -355,2 +374,3 @@ */

/**
* @category Primitives
* @since 1.7.1

@@ -372,2 +392,3 @@ */

/**
* @category Primitives
* @since 1.7.1

@@ -382,2 +403,3 @@ */

/**
* @category deprecated
* @since 1.0.0

@@ -394,2 +416,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.5.3

@@ -401,2 +424,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -435,2 +459,3 @@ * @deprecated

/**
* @category Combinators
* @since 1.8.1

@@ -447,2 +472,4 @@ */

* A branded codec representing an integer
*
* @category Primitives
* @since 1.8.1

@@ -473,2 +500,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -498,2 +526,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -520,2 +549,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -541,2 +571,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -590,2 +621,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -627,2 +659,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -665,2 +698,3 @@ */

/**
* @category Combinators
* @since 1.7.1

@@ -686,2 +720,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -723,2 +758,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -767,2 +803,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -792,2 +829,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -813,2 +851,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -819,2 +858,4 @@ */

* Strips additional properties
*
* @category Combinators
* @since 1.0.0

@@ -824,2 +865,3 @@ */

/**
* @category deprecated
* @since 1.3.0

@@ -833,2 +875,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.5.3

@@ -843,2 +886,3 @@ * @deprecated

*
* @category deprecated
* @since 1.3.0

@@ -901,2 +945,4 @@ * @deprecated

* Use `UnknownArray` instead
*
* @category deprecated
* @deprecated

@@ -909,2 +955,4 @@ * @since 1.0.0

* Use `type` instead
*
* @category deprecated
* @deprecated

@@ -921,2 +969,4 @@ * @since 1.0.0

* Use `unknown` instead
*
* @category deprecated
* @since 1.0.0

@@ -927,2 +977,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -933,2 +984,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -939,2 +991,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -951,2 +1004,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.5.3

@@ -958,2 +1012,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -964,2 +1019,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -976,2 +1032,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.5.3

@@ -984,2 +1041,4 @@ * @deprecated

* Use `unknown` instead
*
* @category deprecated
* @since 1.0.0

@@ -991,2 +1050,4 @@ * @deprecated

* Use `UnknownRecord` instead
*
* @category deprecated
* @since 1.0.0

@@ -997,2 +1058,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -1009,2 +1071,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.5.3

@@ -1017,2 +1080,4 @@ * @deprecated

* Use `UnknownRecord` instead
*
* @category deprecated
* @since 1.0.0

@@ -1024,2 +1089,4 @@ * @deprecated

* Use `BrandC` instead
*
* @category deprecated
* @since 1.5.3

@@ -1032,2 +1099,4 @@ * @deprecated

* Use `brand` instead
*
* @category deprecated
* @since 1.0.0

@@ -1039,2 +1108,4 @@ * @deprecated

* Use `Int` instead
*
* @category deprecated
* @since 1.0.0

@@ -1046,2 +1117,4 @@ * @deprecated

* Use `record` instead
*
* @category deprecated
* @since 1.0.0

@@ -1053,2 +1126,4 @@ * @deprecated

* used in `intersection` as a workaround for #234
*
* @category deprecated
* @since 1.4.2

@@ -1061,2 +1136,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -1074,2 +1150,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.5.3

@@ -1086,2 +1163,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.3.0

@@ -1094,2 +1172,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.3.0

@@ -1101,2 +1180,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.3.0

@@ -1108,2 +1188,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.3.0

@@ -1114,2 +1195,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.3.0

@@ -1122,2 +1204,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.3.0

@@ -1129,2 +1212,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.3.0

@@ -1136,2 +1220,4 @@ * @deprecated

* Drops the codec "kind"
*
* @category deprecated
* @since 1.1.0

@@ -1142,2 +1228,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -1150,2 +1237,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.1.0

@@ -1165,2 +1253,4 @@ * @deprecated

* Keeps the codec "kind"
*
* @category deprecated
* @since 1.1.0

@@ -1167,0 +1257,0 @@ * @deprecated

@@ -37,2 +37,3 @@ var __extends = (this && this.__extends) || (function () {

/**
* @category Model
* @since 1.0.0

@@ -138,5 +139,5 @@ */

};
//
// basic types
//
// -------------------------------------------------------------------------------------
// primitives
// -------------------------------------------------------------------------------------
/**

@@ -159,2 +160,3 @@ * @since 1.0.0

/**
* @category Primitives
* @since 1.0.0

@@ -197,2 +199,3 @@ */

/**
* @category Primitives
* @since 1.2.0

@@ -218,2 +221,3 @@ */

/**
* @category Primitives
* @since 1.5.0

@@ -239,2 +243,3 @@ */

/**
* @category Primitives
* @since 1.0.0

@@ -260,2 +265,3 @@ */

/**
* @category Primitives
* @since 1.0.0

@@ -283,2 +289,3 @@ */

/**
* @category Primitives
* @since 2.1.0

@@ -304,2 +311,3 @@ */

/**
* @category Primitives
* @since 1.0.0

@@ -325,2 +333,3 @@ */

/**
* @category Primitives
* @since 1.7.1

@@ -349,2 +358,3 @@ */

/**
* @category Primitives
* @since 1.7.1

@@ -354,2 +364,3 @@ */

/**
* @category deprecated
* @since 1.0.0

@@ -374,2 +385,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -398,3 +410,7 @@ * @deprecated

export { RefinementType };
// -------------------------------------------------------------------------------------
// combinators
// -------------------------------------------------------------------------------------
/**
* @category Combinators
* @since 1.8.1

@@ -408,2 +424,4 @@ */

* A branded codec representing an integer
*
* @category Primitives
* @since 1.8.1

@@ -430,2 +448,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -457,2 +476,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -492,2 +512,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -525,2 +546,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -592,2 +614,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -675,2 +698,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -870,2 +894,3 @@ */

/**
* @category Combinators
* @since 1.7.1

@@ -900,2 +925,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -1115,2 +1141,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -1150,2 +1177,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -1170,2 +1198,4 @@ */

* Strips additional properties
*
* @category Combinators
* @since 1.0.0

@@ -1177,2 +1207,3 @@ */

/**
* @category deprecated
* @since 1.3.0

@@ -1201,2 +1232,3 @@ * @deprecated

*
* @category deprecated
* @since 1.3.0

@@ -1306,2 +1338,4 @@ * @deprecated

* Use `UnknownArray` instead
*
* @category deprecated
* @deprecated

@@ -1314,2 +1348,4 @@ * @since 1.0.0

* Use `type` instead
*
* @category deprecated
* @deprecated

@@ -1325,2 +1361,3 @@ * @since 1.0.0

/**
* @category deprecated
* @since 1.0.0

@@ -1334,2 +1371,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -1342,2 +1380,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -1364,2 +1403,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -1371,2 +1411,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -1390,2 +1431,4 @@ * @deprecated

* Use `unknown` instead
*
* @category deprecated
* @since 1.0.0

@@ -1398,2 +1441,4 @@ * @deprecated

* Use `UnknownRecord` instead
*
* @category deprecated
* @since 1.0.0

@@ -1404,2 +1449,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -1423,2 +1469,4 @@ * @deprecated

* Use `UnknownRecord` instead
*
* @category deprecated
* @since 1.0.0

@@ -1431,2 +1479,4 @@ * @deprecated

* Use `brand` instead
*
* @category deprecated
* @since 1.0.0

@@ -1448,2 +1498,4 @@ * @deprecated

* Use `Int` instead
*
* @category deprecated
* @since 1.0.0

@@ -1456,2 +1508,4 @@ * @deprecated

* Use `record` instead
*
* @category deprecated
* @since 1.0.0

@@ -1462,2 +1516,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -1488,2 +1543,4 @@ * @deprecated

* Drops the codec "kind"
*
* @category deprecated
* @since 1.1.0

@@ -1490,0 +1547,0 @@ * @deprecated

@@ -15,2 +15,3 @@ /**

*
* @category model
* @since 2.2.3

@@ -25,2 +26,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -30,2 +32,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -35,2 +38,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -40,2 +44,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -45,2 +50,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -50,2 +56,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -55,2 +62,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -60,2 +68,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -65,2 +74,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -74,2 +84,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -83,2 +94,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -88,2 +100,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -93,2 +106,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -100,2 +114,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -105,2 +120,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -112,2 +128,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -117,2 +134,3 @@ */

/**
* @category Contravariant
* @since 2.2.3

@@ -122,2 +140,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -127,2 +146,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -137,2 +157,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -142,4 +163,5 @@ */

/**
* @category instances
* @since 2.2.3
*/
export declare const schemableJsonCodec: Schemable1<URI> & WithRefinement1<URI>;

@@ -6,2 +6,3 @@ import * as C from './Codec';

/**
* @category constructors
* @since 2.2.3

@@ -11,2 +12,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -19,2 +21,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -24,2 +27,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -29,2 +33,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -37,2 +42,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -42,2 +48,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -47,2 +54,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -52,2 +60,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -57,2 +66,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -62,2 +72,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -67,2 +78,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -72,2 +84,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -77,2 +90,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -82,2 +96,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -87,2 +102,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -95,2 +111,3 @@ */

/**
* @category Contravariant
* @since 2.2.3

@@ -103,2 +120,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -108,2 +126,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -116,2 +135,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -118,0 +138,0 @@ */

@@ -8,2 +8,3 @@ /**

/**
* @category model
* @since 2.2.3

@@ -14,2 +15,3 @@ */

/**
* @category model
* @since 2.2.3

@@ -21,2 +23,3 @@ */

/**
* @category model
* @since 2.2.3

@@ -26,2 +29,3 @@ */

/**
* @category model
* @since 2.2.3

@@ -37,2 +41,3 @@ */

/**
* @category primitives
* @since 2.2.5

@@ -42,2 +47,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -47,2 +53,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -56,2 +63,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -65,2 +73,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -70,2 +79,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -75,2 +85,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -82,2 +93,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -87,2 +99,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -94,2 +107,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -99,2 +113,3 @@ */

/**
* @category Contravariant
* @since 2.2.3

@@ -104,2 +119,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -109,2 +125,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -119,2 +136,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -124,4 +142,5 @@ */

/**
* @category instances
* @since 2.2.3
*/
export declare const schemableJsonEncoder: Schemable1<URI>;

@@ -7,2 +7,3 @@ import { identity } from 'fp-ts/es6/function';

/**
* @category primitives
* @since 2.2.5

@@ -19,2 +20,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -24,2 +26,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -29,2 +32,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -34,2 +38,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -39,2 +44,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -44,2 +50,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -49,2 +56,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -54,2 +62,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -59,2 +68,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -67,2 +77,3 @@ */

/**
* @category Contravariant
* @since 2.2.3

@@ -75,2 +86,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -80,2 +92,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -88,2 +101,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -90,0 +104,0 @@ */

@@ -7,2 +7,3 @@ /**

/**
* @category model
* @since 2.2.0

@@ -14,9 +15,10 @@ */

/**
* @category constructors
* @since 2.2.0
*/
export declare type TypeOf<S> = S extends Schema<infer A> ? A : never;
export declare function make<A>(schema: Schema<A>): Schema<A>;
/**
* @since 2.2.0
*/
export declare function make<A>(schema: Schema<A>): Schema<A>;
export declare type TypeOf<S> = S extends Schema<infer A> ? A : never;
/**

@@ -23,0 +25,0 @@ * @since 2.2.3

import { memoize } from './Schemable';
// -------------------------------------------------------------------------------------
// constructors
// -------------------------------------------------------------------------------------
/**
* @category constructors
* @since 2.2.0

@@ -4,0 +8,0 @@ */

@@ -7,2 +7,3 @@ /**

/**
* @category deprecated
* @since 1.0.0

@@ -9,0 +10,0 @@ * @deprecated

import { PathReporter } from './PathReporter';
import { isLeft } from 'fp-ts/es6/Either';
/**
* @category deprecated
* @since 1.0.0

@@ -5,0 +6,0 @@ * @deprecated

@@ -7,2 +7,3 @@ /**

/**
* @category model
* @since 2.2.3

@@ -13,2 +14,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -18,2 +20,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -23,2 +26,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -28,2 +32,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -33,2 +38,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -38,2 +44,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -43,2 +50,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -48,2 +56,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -53,2 +62,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -62,2 +72,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -71,2 +82,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -76,2 +88,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -81,2 +94,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -88,2 +102,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -93,2 +108,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -98,2 +114,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -105,2 +122,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -112,2 +130,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -117,2 +136,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -127,4 +147,5 @@ */

/**
* @category instances
* @since 2.2.3
*/
export declare const schemableType: Schemable1<URI> & WithUnknownContainers1<URI> & WithUnion1<URI> & WithRefinement1<URI>;

@@ -9,2 +9,3 @@ /**

/**
* @category constructors
* @since 2.2.3

@@ -23,2 +24,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -28,2 +30,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -33,2 +36,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -38,2 +42,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -43,2 +48,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -51,2 +57,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -59,2 +66,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -66,2 +74,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -73,2 +82,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -80,2 +90,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -87,2 +98,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -94,2 +106,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -105,2 +118,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -112,2 +126,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -119,2 +134,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -126,2 +142,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -140,2 +157,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -145,2 +163,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -147,0 +166,0 @@ */

@@ -14,2 +14,3 @@ /**

*
* @category model
* @since 2.2.3

@@ -28,2 +29,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -33,2 +35,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -38,2 +41,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -43,2 +47,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -48,2 +53,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -53,2 +59,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -58,2 +65,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -63,2 +71,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -68,2 +77,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -73,2 +83,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -78,2 +89,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -83,2 +95,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -92,2 +105,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -101,2 +115,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -106,2 +121,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -111,2 +127,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -120,2 +137,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -125,2 +143,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -130,2 +149,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -135,2 +155,3 @@ */

/**
* @category Invariant
* @since 2.2.3

@@ -140,2 +161,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -145,2 +167,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -155,4 +178,5 @@ */

/**
* @category instances
* @since 2.2.3
*/
export declare const invariantCodec: Invariant2<URI>;

@@ -11,2 +11,3 @@ "use strict";

/**
* @category constructors
* @since 2.2.3

@@ -22,2 +23,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -33,2 +35,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -48,2 +51,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -53,2 +57,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -58,2 +63,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -63,2 +69,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -68,2 +75,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -76,2 +84,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -84,2 +93,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -92,2 +102,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -100,2 +111,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -109,6 +121,7 @@ */

/**
* @category combinators
* @since 2.2.3
*/
function partial(properties) {
// these tow `any`s are required to make typescript@3.5 compile
// these two `any`s are required to make typescript@3.5 compile
// vvvvvv vvvvvv

@@ -119,2 +132,3 @@ return make(D.partial(properties), E.partial(properties));

/**
* @category combinators
* @since 2.2.3

@@ -127,2 +141,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -135,2 +150,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -149,2 +165,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -157,2 +174,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -167,2 +185,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -178,2 +197,3 @@ */

/**
* @category Invariant
* @since 2.2.3

@@ -191,2 +211,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -196,2 +217,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -198,0 +220,0 @@ */

/**
* @since 2.2.0
*/
import { Either } from 'fp-ts/lib/Either';
import * as E from 'fp-ts/lib/Either';
import { NonEmptyArray } from 'fp-ts/lib/NonEmptyArray';

@@ -11,8 +11,5 @@ import { Forest, Tree } from 'fp-ts/lib/Tree';

import { Alt1 } from 'fp-ts/lib/Alt';
import Either = E.Either;
/**
* @since 2.2.2
*/
export interface DecodeError extends NonEmptyArray<Tree<string>> {
}
/**
* @category model
* @since 2.2.0

@@ -28,2 +25,9 @@ */

/**
* @category DecodeError
* @since 2.2.2
*/
export interface DecodeError extends NonEmptyArray<Tree<string>> {
}
/**
* @category DecodeError
* @since 2.2.0

@@ -33,2 +37,3 @@ */

/**
* @category DecodeError
* @since 2.2.0

@@ -38,2 +43,3 @@ */

/**
* @category DecodeError
* @since 2.2.0

@@ -43,2 +49,3 @@ */

/**
* @category DecodeError
* @since 2.2.2

@@ -48,2 +55,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -53,2 +61,3 @@ */

/**
* @category constructors
* @since 2.2.0

@@ -58,2 +67,3 @@ */

/**
* @category constructors
* @since 2.2.0

@@ -63,2 +73,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -68,2 +79,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -73,2 +85,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -78,2 +91,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -83,2 +97,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -88,2 +103,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -93,2 +109,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -98,2 +115,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -103,2 +121,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -108,2 +127,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -113,2 +133,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -122,2 +143,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -131,2 +153,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -136,2 +159,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -141,2 +165,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -148,2 +173,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -153,2 +179,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -158,2 +185,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -165,2 +193,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -172,2 +201,3 @@ */

/**
* @category Functor
* @since 2.2.0

@@ -177,2 +207,3 @@ */

/**
* @category Alt
* @since 2.2.0

@@ -182,2 +213,3 @@ */

/**
* @category instances
* @since 2.2.0

@@ -187,2 +219,3 @@ */

/**
* @category instances
* @since 2.2.0

@@ -197,2 +230,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -202,2 +236,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -207,4 +242,5 @@ */

/**
* @category instances
* @since 2.2.3
*/
export declare const schemableDecoder: Schemable1<URI> & WithUnknownContainers1<URI> & WithUnion1<URI> & WithRefinement1<URI>;

@@ -7,11 +7,9 @@ "use strict";

*/
var Either_1 = require("fp-ts/lib/Either");
var E = require("fp-ts/lib/Either");
var pipeable_1 = require("fp-ts/lib/pipeable");
var G = require("./Guard");
var Schemable_1 = require("./Schemable");
// -------------------------------------------------------------------------------------
// DecodeError
// -------------------------------------------------------------------------------------
var empty = [];
/**
* @category DecodeError
* @since 2.2.0

@@ -28,16 +26,19 @@ */

/**
* @category DecodeError
* @since 2.2.0
*/
function success(a) {
return Either_1.right(a);
return E.right(a);
}
exports.success = success;
/**
* @category DecodeError
* @since 2.2.0
*/
function failure(message) {
return Either_1.left([tree(message)]);
return E.left([tree(message)]);
}
exports.failure = failure;
/**
* @category DecodeError
* @since 2.2.2

@@ -53,2 +54,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -63,2 +65,3 @@ */

/**
* @category constructors
* @since 2.2.0

@@ -73,2 +76,3 @@ */

/**
* @category constructors
* @since 2.2.0

@@ -93,2 +97,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -98,2 +103,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -103,2 +109,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -108,2 +115,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -113,2 +121,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -118,2 +127,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -126,2 +136,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -132,3 +143,3 @@ */

decode: function (u) {
return pipeable_1.pipe(decoder.decode(u), Either_1.mapLeft(function (nea) { return expected(u, nea); }));
return pipeable_1.pipe(decoder.decode(u), E.mapLeft(function (nea) { return expected(u, nea); }));
}

@@ -139,2 +150,3 @@ };

/**
* @category combinators
* @since 2.2.0

@@ -146,3 +158,3 @@ */

var e = from.decode(u);
if (Either_1.isLeft(e)) {
if (E.isLeft(e)) {
return e;

@@ -157,2 +169,3 @@ }

/**
* @category combinators
* @since 2.2.0

@@ -164,7 +177,7 @@ */

var e = from.decode(u);
if (Either_1.isLeft(e)) {
if (E.isLeft(e)) {
return e;
}
var pe = parser(e.right);
if (Either_1.isLeft(pe)) {
if (E.isLeft(pe)) {
return failure(pe.left);

@@ -178,2 +191,3 @@ }

/**
* @category combinators
* @since 2.2.0

@@ -186,2 +200,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -193,3 +208,3 @@ */

var e = exports.UnknownRecord.decode(u);
if (Either_1.isLeft(e)) {
if (E.isLeft(e)) {
return e;

@@ -203,3 +218,3 @@ }

var e_1 = properties[k].decode(r[k]);
if (Either_1.isLeft(e_1)) {
if (E.isLeft(e_1)) {
errors.push(tree("required property " + JSON.stringify(k), e_1.left));

@@ -211,3 +226,3 @@ }

}
return isNotEmpty(errors) ? Either_1.left(errors) : success(a);
return isNotEmpty(errors) ? E.left(errors) : success(a);
}

@@ -219,2 +234,3 @@ }

/**
* @category combinators
* @since 2.2.0

@@ -226,3 +242,3 @@ */

var e = exports.UnknownRecord.decode(u);
if (Either_1.isLeft(e)) {
if (E.isLeft(e)) {
return e;

@@ -244,3 +260,3 @@ }

var e_2 = properties[k].decode(rk);
if (Either_1.isLeft(e_2)) {
if (E.isLeft(e_2)) {
errors.push(tree("optional property " + JSON.stringify(k), e_2.left));

@@ -254,3 +270,3 @@ }

}
return isNotEmpty(errors) ? Either_1.left(errors) : success(a);
return isNotEmpty(errors) ? E.left(errors) : success(a);
}

@@ -262,2 +278,3 @@ }

/**
* @category combinators
* @since 2.2.0

@@ -269,3 +286,3 @@ */

var e = exports.UnknownRecord.decode(u);
if (Either_1.isLeft(e)) {
if (E.isLeft(e)) {
return e;

@@ -279,3 +296,3 @@ }

var e_3 = codomain.decode(r[k]);
if (Either_1.isLeft(e_3)) {
if (E.isLeft(e_3)) {
errors.push(tree("key " + JSON.stringify(k), e_3.left));

@@ -287,3 +304,3 @@ }

}
return isNotEmpty(errors) ? Either_1.left(errors) : success(a);
return isNotEmpty(errors) ? E.left(errors) : success(a);
}

@@ -295,2 +312,3 @@ }

/**
* @category combinators
* @since 2.2.0

@@ -302,3 +320,3 @@ */

var e = exports.UnknownArray.decode(u);
if (Either_1.isLeft(e)) {
if (E.isLeft(e)) {
return e;

@@ -313,3 +331,3 @@ }

var e_4 = items.decode(us[i]);
if (Either_1.isLeft(e_4)) {
if (E.isLeft(e_4)) {
errors.push(tree("item " + i, e_4.left));

@@ -321,3 +339,3 @@ }

}
return isNotEmpty(errors) ? Either_1.left(errors) : success(a);
return isNotEmpty(errors) ? E.left(errors) : success(a);
}

@@ -329,2 +347,3 @@ }

/**
* @category combinators
* @since 2.2.0

@@ -340,3 +359,3 @@ */

var e = exports.UnknownArray.decode(u);
if (Either_1.isLeft(e)) {
if (E.isLeft(e)) {
return e;

@@ -349,3 +368,3 @@ }

var e_5 = components[i].decode(us[i]);
if (Either_1.isLeft(e_5)) {
if (E.isLeft(e_5)) {
errors.push(tree("component " + i, e_5.left));

@@ -357,3 +376,3 @@ }

}
return isNotEmpty(errors) ? Either_1.left(errors) : success(a);
return isNotEmpty(errors) ? E.left(errors) : success(a);
}

@@ -381,2 +400,3 @@ };

/**
* @category combinators
* @since 2.2.0

@@ -388,7 +408,7 @@ */

var ea = left.decode(u);
if (Either_1.isLeft(ea)) {
return ea;
var eb = right.decode(u);
if (E.isLeft(ea)) {
return E.isLeft(eb) ? E.left(ea.left.concat(eb.left)) : ea;
}
var eb = right.decode(u);
if (Either_1.isLeft(eb)) {
if (E.isLeft(eb)) {
return eb;

@@ -402,2 +422,3 @@ }

/**
* @category combinators
* @since 2.2.0

@@ -409,3 +430,3 @@ */

decode: function (u) {
return pipeable_1.pipe(get().decode(u), Either_1.mapLeft(function (nea) { return [tree(id, nea)]; }));
return pipeable_1.pipe(get().decode(u), E.mapLeft(function (nea) { return [tree(id, nea)]; }));
}

@@ -416,2 +437,3 @@ };

/**
* @category combinators
* @since 2.2.0

@@ -429,10 +451,10 @@ */

var e = exports.UnknownRecord.decode(u);
if (Either_1.isLeft(e)) {
if (E.isLeft(e)) {
return e;
}
var v = e.right[tag];
if (G.string.is(v) && v in members) {
if (v in members) {
return members[v].decode(u);
}
return Either_1.left([
return E.left([
tree("required property " + JSON.stringify(tag), [

@@ -448,2 +470,3 @@ tree("cannot decode " + JSON.stringify(v) + ", should be " + expected)

/**
* @category combinators
* @since 2.2.0

@@ -463,3 +486,3 @@ */

var e = members[0].decode(u);
if (Either_1.isRight(e)) {
if (E.isRight(e)) {
return e;

@@ -471,3 +494,3 @@ }

var e_6 = members[i].decode(u);
if (Either_1.isRight(e_6)) {
if (E.isRight(e_6)) {
return e_6;

@@ -479,3 +502,3 @@ }

}
return Either_1.left(errors);
return E.left(errors);
}

@@ -490,2 +513,3 @@ }

/**
* @category Functor
* @since 2.2.0

@@ -497,6 +521,7 @@ */

var e = fa.decode(u);
return Either_1.isLeft(e) ? e : Either_1.right(f(e.right));
return E.isLeft(e) ? e : E.right(f(e.right));
}
}); };
/**
* @category Alt
* @since 2.2.0

@@ -508,3 +533,3 @@ */

var e = fx.decode(u);
return Either_1.isLeft(e) ? fy().decode(u) : e;
return E.isLeft(e) ? fy().decode(u) : e;
}

@@ -516,2 +541,3 @@ }); };

/**
* @category instances
* @since 2.2.0

@@ -521,2 +547,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -529,2 +556,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -538,2 +566,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -540,0 +569,0 @@ */

@@ -7,2 +7,3 @@ /**

/**
* @category model
* @since 2.2.3

@@ -22,2 +23,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -27,2 +29,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -32,2 +35,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -41,2 +45,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -50,2 +55,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -55,2 +61,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -60,2 +67,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -69,2 +77,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -74,2 +83,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -79,2 +89,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -84,2 +95,3 @@ */

/**
* @category Contravariant
* @since 2.2.3

@@ -89,2 +101,3 @@ */

/**
* @category Semigroupoid
* @since 2.2.3

@@ -94,2 +107,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -99,2 +113,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -109,2 +124,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -114,4 +130,5 @@ */

/**
* @category instances
* @since 2.2.3
*/
export declare const categoryEncoder: Category2<URI>;

@@ -11,2 +11,3 @@ "use strict";

/**
* @category constructors
* @since 2.2.3

@@ -24,2 +25,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -34,2 +36,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -50,2 +53,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -71,2 +75,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -87,2 +92,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -97,2 +103,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -111,2 +118,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -121,2 +129,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -133,2 +142,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -147,2 +157,3 @@ */

/**
* @category Contravariant
* @since 2.2.3

@@ -157,2 +168,3 @@ */

/**
* @category Semigroupoid
* @since 2.2.3

@@ -170,2 +182,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -175,2 +188,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -183,2 +197,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -185,0 +200,0 @@ */

@@ -13,2 +13,3 @@ import * as E from 'fp-ts/lib/Eq';

/**
* @category primitives
* @since 2.2.2

@@ -18,2 +19,3 @@ */

/**
* @category primitives
* @since 2.2.2

@@ -23,2 +25,3 @@ */

/**
* @category primitives
* @since 2.2.2

@@ -28,2 +31,3 @@ */

/**
* @category primitives
* @since 2.2.2

@@ -33,2 +37,3 @@ */

/**
* @category primitives
* @since 2.2.2

@@ -38,2 +43,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -43,2 +49,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -52,2 +59,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -61,2 +69,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -66,2 +75,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -71,2 +81,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -78,2 +89,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -83,2 +95,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -90,2 +103,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -95,4 +109,5 @@ */

/**
* @category instances
* @since 2.2.3
*/
export declare const schemableEq: Schemable1<E.URI> & WithUnknownContainers1<E.URI> & WithRefinement1<E.URI>;

@@ -15,2 +15,3 @@ "use strict";

/**
* @category primitives
* @since 2.2.2

@@ -20,2 +21,3 @@ */

/**
* @category primitives
* @since 2.2.2

@@ -25,2 +27,3 @@ */

/**
* @category primitives
* @since 2.2.2

@@ -30,2 +33,3 @@ */

/**
* @category primitives
* @since 2.2.2

@@ -35,2 +39,3 @@ */

/**
* @category primitives
* @since 2.2.2

@@ -55,2 +60,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -65,2 +71,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -70,2 +77,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -89,2 +97,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -94,2 +103,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -99,2 +109,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -104,2 +115,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -114,2 +126,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -133,2 +146,3 @@ */

/**
* @category combinators
* @since 2.2.2

@@ -147,2 +161,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -149,0 +164,0 @@ */

@@ -6,2 +6,3 @@ /**

/**
* @category model
* @since 2.2.0

@@ -17,2 +18,3 @@ */

/**
* @category constructors
* @since 2.2.0

@@ -22,2 +24,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -27,2 +30,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -32,2 +36,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -37,2 +42,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -42,2 +48,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -47,2 +54,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -52,2 +60,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -57,2 +66,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -62,2 +72,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -71,2 +82,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -80,2 +92,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -85,2 +98,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -90,2 +104,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -97,2 +112,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -102,2 +118,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -109,2 +126,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -116,2 +134,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -121,2 +140,3 @@ */

/**
* @category instances
* @since 2.2.0

@@ -126,2 +146,3 @@ */

/**
* @category instances
* @since 2.2.0

@@ -136,4 +157,5 @@ */

/**
* @category instances
* @since 2.2.3
*/
export declare const schemableGuard: Schemable1<URI> & WithUnknownContainers1<URI> & WithUnion1<URI> & WithRefinement1<URI>;

@@ -12,2 +12,3 @@ "use strict";

/**
* @category constructors
* @since 2.2.0

@@ -29,2 +30,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -36,2 +38,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -43,2 +46,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -50,2 +54,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -57,2 +62,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -64,2 +70,3 @@ */

/**
* @category primitives
* @since 2.2.0

@@ -74,2 +81,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -84,2 +92,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -94,2 +103,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -109,2 +119,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -125,2 +136,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -140,2 +152,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -148,2 +161,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -162,2 +176,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -172,2 +187,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -186,2 +202,3 @@ */

/**
* @category combinators
* @since 2.2.0

@@ -193,3 +210,3 @@ */

var v = r[tag];
if (exports.string.is(v) && v in members) {
if (v in members) {
return members[v].is(r);

@@ -203,2 +220,3 @@ }

/**
* @category combinators
* @since 2.2.0

@@ -217,2 +235,3 @@ */

/**
* @category instances
* @since 2.2.0

@@ -222,2 +241,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -224,0 +244,0 @@ */

@@ -7,2 +7,3 @@ /**

/**
* @category Model
* @since 1.0.0

@@ -17,2 +18,3 @@ */

/**
* @category Model
* @since 1.0.0

@@ -23,2 +25,3 @@ */

/**
* @category Model
* @since 1.0.0

@@ -35,2 +38,3 @@ */

/**
* @category Model
* @since 1.0.0

@@ -41,2 +45,3 @@ */

/**
* @category Model
* @since 1.0.0

@@ -46,2 +51,3 @@ */

/**
* @category Model
* @since 1.0.0

@@ -51,2 +57,3 @@ */

/**
* @category Model
* @since 1.0.0

@@ -56,2 +63,3 @@ */

/**
* @category Model
* @since 1.0.0

@@ -61,2 +69,3 @@ */

/**
* @category Model
* @since 1.0.0

@@ -88,2 +97,3 @@ */

/**
* @category Model
* @since 1.0.0

@@ -97,2 +107,3 @@ */

/**
* @category Model
* @since 1.0.0

@@ -104,2 +115,3 @@ */

/**
* @category Model
* @since 1.0.0

@@ -199,2 +211,3 @@ */

/**
* @category Primitives
* @since 1.0.0

@@ -235,2 +248,3 @@ */

/**
* @category Primitives
* @since 1.2.0

@@ -255,2 +269,3 @@ */

/**
* @category Primitives
* @since 1.5.0

@@ -275,2 +290,3 @@ */

/**
* @category Primitives
* @since 1.0.0

@@ -295,2 +311,3 @@ */

/**
* @category Primitives
* @since 1.0.0

@@ -315,2 +332,3 @@ */

/**
* @category Primitives
* @since 2.1.0

@@ -335,2 +353,3 @@ */

/**
* @category Primitives
* @since 1.0.0

@@ -355,2 +374,3 @@ */

/**
* @category Primitives
* @since 1.7.1

@@ -372,2 +392,3 @@ */

/**
* @category Primitives
* @since 1.7.1

@@ -382,2 +403,3 @@ */

/**
* @category deprecated
* @since 1.0.0

@@ -394,2 +416,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.5.3

@@ -401,2 +424,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -435,2 +459,3 @@ * @deprecated

/**
* @category Combinators
* @since 1.8.1

@@ -447,2 +472,4 @@ */

* A branded codec representing an integer
*
* @category Primitives
* @since 1.8.1

@@ -473,2 +500,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -498,2 +526,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -520,2 +549,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -541,2 +571,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -590,2 +621,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -627,2 +659,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -665,2 +698,3 @@ */

/**
* @category Combinators
* @since 1.7.1

@@ -686,2 +720,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -723,2 +758,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -767,2 +803,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -792,2 +829,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -813,2 +851,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -819,2 +858,4 @@ */

* Strips additional properties
*
* @category Combinators
* @since 1.0.0

@@ -824,2 +865,3 @@ */

/**
* @category deprecated
* @since 1.3.0

@@ -833,2 +875,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.5.3

@@ -843,2 +886,3 @@ * @deprecated

*
* @category deprecated
* @since 1.3.0

@@ -901,2 +945,4 @@ * @deprecated

* Use `UnknownArray` instead
*
* @category deprecated
* @deprecated

@@ -909,2 +955,4 @@ * @since 1.0.0

* Use `type` instead
*
* @category deprecated
* @deprecated

@@ -921,2 +969,4 @@ * @since 1.0.0

* Use `unknown` instead
*
* @category deprecated
* @since 1.0.0

@@ -927,2 +977,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -933,2 +984,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -939,2 +991,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -951,2 +1004,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.5.3

@@ -958,2 +1012,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -964,2 +1019,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -976,2 +1032,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.5.3

@@ -984,2 +1041,4 @@ * @deprecated

* Use `unknown` instead
*
* @category deprecated
* @since 1.0.0

@@ -991,2 +1050,4 @@ * @deprecated

* Use `UnknownRecord` instead
*
* @category deprecated
* @since 1.0.0

@@ -997,2 +1058,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -1009,2 +1071,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.5.3

@@ -1017,2 +1080,4 @@ * @deprecated

* Use `UnknownRecord` instead
*
* @category deprecated
* @since 1.0.0

@@ -1024,2 +1089,4 @@ * @deprecated

* Use `BrandC` instead
*
* @category deprecated
* @since 1.5.3

@@ -1032,2 +1099,4 @@ * @deprecated

* Use `brand` instead
*
* @category deprecated
* @since 1.0.0

@@ -1039,2 +1108,4 @@ * @deprecated

* Use `Int` instead
*
* @category deprecated
* @since 1.0.0

@@ -1046,2 +1117,4 @@ * @deprecated

* Use `record` instead
*
* @category deprecated
* @since 1.0.0

@@ -1053,2 +1126,4 @@ * @deprecated

* used in `intersection` as a workaround for #234
*
* @category deprecated
* @since 1.4.2

@@ -1061,2 +1136,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -1074,2 +1150,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.5.3

@@ -1086,2 +1163,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.3.0

@@ -1094,2 +1172,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.3.0

@@ -1101,2 +1180,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.3.0

@@ -1108,2 +1188,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.3.0

@@ -1114,2 +1195,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.3.0

@@ -1122,2 +1204,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.3.0

@@ -1129,2 +1212,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.3.0

@@ -1136,2 +1220,4 @@ * @deprecated

* Drops the codec "kind"
*
* @category deprecated
* @since 1.1.0

@@ -1142,2 +1228,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -1150,2 +1237,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.1.0

@@ -1165,2 +1253,4 @@ * @deprecated

* Keeps the codec "kind"
*
* @category deprecated
* @since 1.1.0

@@ -1167,0 +1257,0 @@ * @deprecated

@@ -40,2 +40,3 @@ "use strict";

/**
* @category Model
* @since 1.0.0

@@ -141,5 +142,5 @@ */

};
//
// basic types
//
// -------------------------------------------------------------------------------------
// primitives
// -------------------------------------------------------------------------------------
/**

@@ -162,2 +163,3 @@ * @since 1.0.0

/**
* @category Primitives
* @since 1.0.0

@@ -202,2 +204,3 @@ */

/**
* @category Primitives
* @since 1.2.0

@@ -224,2 +227,3 @@ */

/**
* @category Primitives
* @since 1.5.0

@@ -245,2 +249,3 @@ */

/**
* @category Primitives
* @since 1.0.0

@@ -266,2 +271,3 @@ */

/**
* @category Primitives
* @since 1.0.0

@@ -289,2 +295,3 @@ */

/**
* @category Primitives
* @since 2.1.0

@@ -310,2 +317,3 @@ */

/**
* @category Primitives
* @since 1.0.0

@@ -331,2 +339,3 @@ */

/**
* @category Primitives
* @since 1.7.1

@@ -356,2 +365,3 @@ */

/**
* @category Primitives
* @since 1.7.1

@@ -361,2 +371,3 @@ */

/**
* @category deprecated
* @since 1.0.0

@@ -381,2 +392,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -405,3 +417,7 @@ * @deprecated

exports.RefinementType = RefinementType;
// -------------------------------------------------------------------------------------
// combinators
// -------------------------------------------------------------------------------------
/**
* @category Combinators
* @since 1.8.1

@@ -415,2 +431,4 @@ */

* A branded codec representing an integer
*
* @category Primitives
* @since 1.8.1

@@ -437,2 +455,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -464,2 +483,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -499,2 +519,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -532,2 +553,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -599,2 +621,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -683,2 +706,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -879,2 +903,3 @@ */

/**
* @category Combinators
* @since 1.7.1

@@ -910,2 +935,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -1127,2 +1153,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -1162,2 +1189,3 @@ */

/**
* @category Combinators
* @since 1.0.0

@@ -1182,2 +1210,4 @@ */

* Strips additional properties
*
* @category Combinators
* @since 1.0.0

@@ -1189,2 +1219,3 @@ */

/**
* @category deprecated
* @since 1.3.0

@@ -1213,2 +1244,3 @@ * @deprecated

*
* @category deprecated
* @since 1.3.0

@@ -1306,2 +1338,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -1315,2 +1348,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -1323,2 +1357,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -1345,2 +1380,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -1352,2 +1388,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -1371,2 +1408,4 @@ * @deprecated

* Use `unknown` instead
*
* @category deprecated
* @since 1.0.0

@@ -1379,2 +1418,4 @@ * @deprecated

* Use `UnknownRecord` instead
*
* @category deprecated
* @since 1.0.0

@@ -1385,2 +1426,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -1404,2 +1446,4 @@ * @deprecated

* Use `UnknownRecord` instead
*
* @category deprecated
* @since 1.0.0

@@ -1412,2 +1456,4 @@ * @deprecated

* Use `brand` instead
*
* @category deprecated
* @since 1.0.0

@@ -1430,2 +1476,4 @@ * @deprecated

* Use `Int` instead
*
* @category deprecated
* @since 1.0.0

@@ -1438,2 +1486,4 @@ * @deprecated

* Use `record` instead
*
* @category deprecated
* @since 1.0.0

@@ -1444,2 +1494,3 @@ * @deprecated

/**
* @category deprecated
* @since 1.0.0

@@ -1470,2 +1521,4 @@ * @deprecated

* Drops the codec "kind"
*
* @category deprecated
* @since 1.1.0

@@ -1472,0 +1525,0 @@ * @deprecated

@@ -15,2 +15,3 @@ /**

*
* @category model
* @since 2.2.3

@@ -25,2 +26,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -30,2 +32,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -35,2 +38,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -40,2 +44,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -45,2 +50,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -50,2 +56,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -55,2 +62,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -60,2 +68,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -65,2 +74,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -74,2 +84,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -83,2 +94,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -88,2 +100,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -93,2 +106,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -100,2 +114,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -105,2 +120,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -112,2 +128,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -117,2 +134,3 @@ */

/**
* @category Contravariant
* @since 2.2.3

@@ -122,2 +140,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -127,2 +146,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -137,2 +157,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -142,4 +163,5 @@ */

/**
* @category instances
* @since 2.2.3
*/
export declare const schemableJsonCodec: Schemable1<URI> & WithRefinement1<URI>;

@@ -9,2 +9,3 @@ "use strict";

/**
* @category constructors
* @since 2.2.3

@@ -14,2 +15,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -22,2 +24,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -27,2 +30,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -32,2 +36,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -40,2 +45,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -45,2 +51,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -50,2 +57,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -55,2 +63,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -60,2 +69,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -65,2 +75,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -70,2 +81,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -75,2 +87,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -80,2 +93,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -85,2 +99,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -90,2 +105,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -98,2 +114,3 @@ */

/**
* @category Contravariant
* @since 2.2.3

@@ -106,2 +123,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -111,2 +129,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -119,2 +138,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -121,0 +141,0 @@ */

@@ -8,2 +8,3 @@ /**

/**
* @category model
* @since 2.2.3

@@ -14,2 +15,3 @@ */

/**
* @category model
* @since 2.2.3

@@ -21,2 +23,3 @@ */

/**
* @category model
* @since 2.2.3

@@ -26,2 +29,3 @@ */

/**
* @category model
* @since 2.2.3

@@ -37,2 +41,3 @@ */

/**
* @category primitives
* @since 2.2.5

@@ -42,2 +47,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -47,2 +53,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -56,2 +63,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -65,2 +73,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -70,2 +79,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -75,2 +85,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -82,2 +93,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -87,2 +99,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -94,2 +107,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -99,2 +113,3 @@ */

/**
* @category Contravariant
* @since 2.2.3

@@ -104,2 +119,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -109,2 +125,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -119,2 +136,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -124,4 +142,5 @@ */

/**
* @category instances
* @since 2.2.3
*/
export declare const schemableJsonEncoder: Schemable1<URI>;

@@ -10,2 +10,3 @@ "use strict";

/**
* @category primitives
* @since 2.2.5

@@ -23,2 +24,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -28,2 +30,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -33,2 +36,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -38,2 +42,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -43,2 +48,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -48,2 +54,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -53,2 +60,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -58,2 +66,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -63,2 +72,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -71,2 +81,3 @@ */

/**
* @category Contravariant
* @since 2.2.3

@@ -79,2 +90,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -84,2 +96,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -92,2 +105,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -94,0 +108,0 @@ */

@@ -7,2 +7,3 @@ /**

/**
* @category model
* @since 2.2.0

@@ -14,9 +15,10 @@ */

/**
* @category constructors
* @since 2.2.0
*/
export declare type TypeOf<S> = S extends Schema<infer A> ? A : never;
export declare function make<A>(schema: Schema<A>): Schema<A>;
/**
* @since 2.2.0
*/
export declare function make<A>(schema: Schema<A>): Schema<A>;
export declare type TypeOf<S> = S extends Schema<infer A> ? A : never;
/**

@@ -23,0 +25,0 @@ * @since 2.2.3

@@ -5,3 +5,7 @@ "use strict";

var Schemable_1 = require("./Schemable");
// -------------------------------------------------------------------------------------
// constructors
// -------------------------------------------------------------------------------------
/**
* @category constructors
* @since 2.2.0

@@ -8,0 +12,0 @@ */

@@ -7,2 +7,3 @@ /**

/**
* @category deprecated
* @since 1.0.0

@@ -9,0 +10,0 @@ * @deprecated

@@ -7,2 +7,3 @@ "use strict";

/**
* @category deprecated
* @since 1.0.0

@@ -9,0 +10,0 @@ * @deprecated

@@ -7,2 +7,3 @@ /**

/**
* @category model
* @since 2.2.3

@@ -13,2 +14,3 @@ */

/**
* @category constructors
* @since 2.2.3

@@ -18,2 +20,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -23,2 +26,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -28,2 +32,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -33,2 +38,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -38,2 +44,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -43,2 +50,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -48,2 +56,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -53,2 +62,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -62,2 +72,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -71,2 +82,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -76,2 +88,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -81,2 +94,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -88,2 +102,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -93,2 +108,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -98,2 +114,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -105,2 +122,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -112,2 +130,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -117,2 +136,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -127,4 +147,5 @@ */

/**
* @category instances
* @since 2.2.3
*/
export declare const schemableType: Schemable1<URI> & WithUnknownContainers1<URI> & WithUnion1<URI> & WithRefinement1<URI>;

@@ -12,2 +12,3 @@ "use strict";

/**
* @category constructors
* @since 2.2.3

@@ -27,2 +28,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -32,2 +34,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -37,2 +40,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -42,2 +46,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -47,2 +52,3 @@ */

/**
* @category primitives
* @since 2.2.3

@@ -55,2 +61,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -64,2 +71,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -72,2 +80,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -80,2 +89,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -88,2 +98,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -96,2 +107,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -104,2 +116,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -116,2 +129,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -124,2 +138,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -132,2 +147,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -140,2 +156,3 @@ */

/**
* @category combinators
* @since 2.2.3

@@ -155,2 +172,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -160,2 +178,3 @@ */

/**
* @category instances
* @since 2.2.3

@@ -162,0 +181,0 @@ */

{
"name": "io-ts",
"version": "2.2.5",
"version": "2.2.6",
"description": "TypeScript runtime type system for IO decoding/encoding",

@@ -48,3 +48,3 @@ "files": [

"benchmark": "2.1.4",
"docs-ts": "0.4.0",
"docs-ts": "^0.5.1",
"doctoc": "1.4.0",

@@ -51,0 +51,0 @@ "dtslint": "github:gcanti/dtslint",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc