io-ts
Advanced tools
Comparing version 2.0.6 to 2.1.0
@@ -17,2 +17,7 @@ # Changelog | ||
# 2.1.0 | ||
- **New Feature** | ||
- add `bigint` codec (@mixedCase) | ||
# 2.0.6 | ||
@@ -19,0 +24,0 @@ |
@@ -256,2 +256,18 @@ /** | ||
/** | ||
* @since 2.1.0 | ||
*/ | ||
export declare class BigIntType extends Type<bigint> { | ||
readonly _tag: 'BigIntType'; | ||
constructor(); | ||
} | ||
/** | ||
* @since 2.1.0 | ||
*/ | ||
export interface BigIntC extends BigIntType { | ||
} | ||
/** | ||
* @since 2.1.0 | ||
*/ | ||
export declare const bigint: BigIntC; | ||
/** | ||
* @since 1.0.0 | ||
@@ -258,0 +274,0 @@ */ |
@@ -234,2 +234,21 @@ var __extends = (this && this.__extends) || (function () { | ||
/** | ||
* @since 2.1.0 | ||
*/ | ||
var BigIntType = /** @class */ (function (_super) { | ||
__extends(BigIntType, _super); | ||
function BigIntType() { | ||
var _this = _super.call(this, 'bigint', | ||
// tslint:disable-next-line: valid-typeof | ||
function (u) { return typeof u === 'bigint'; }, function (u, c) { return (_this.is(u) ? success(u) : failure(u, c)); }, identity) || this; | ||
_this._tag = 'BigIntType'; | ||
return _this; | ||
} | ||
return BigIntType; | ||
}(Type)); | ||
export { BigIntType }; | ||
/** | ||
* @since 2.1.0 | ||
*/ | ||
export var bigint = new BigIntType(); | ||
/** | ||
* @since 1.0.0 | ||
@@ -236,0 +255,0 @@ */ |
@@ -256,2 +256,18 @@ /** | ||
/** | ||
* @since 2.1.0 | ||
*/ | ||
export declare class BigIntType extends Type<bigint> { | ||
readonly _tag: 'BigIntType'; | ||
constructor(); | ||
} | ||
/** | ||
* @since 2.1.0 | ||
*/ | ||
export interface BigIntC extends BigIntType { | ||
} | ||
/** | ||
* @since 2.1.0 | ||
*/ | ||
export declare const bigint: BigIntC; | ||
/** | ||
* @since 1.0.0 | ||
@@ -258,0 +274,0 @@ */ |
@@ -239,2 +239,21 @@ "use strict"; | ||
/** | ||
* @since 2.1.0 | ||
*/ | ||
var BigIntType = /** @class */ (function (_super) { | ||
__extends(BigIntType, _super); | ||
function BigIntType() { | ||
var _this = _super.call(this, 'bigint', | ||
// tslint:disable-next-line: valid-typeof | ||
function (u) { return typeof u === 'bigint'; }, function (u, c) { return (_this.is(u) ? exports.success(u) : exports.failure(u, c)); }, exports.identity) || this; | ||
_this._tag = 'BigIntType'; | ||
return _this; | ||
} | ||
return BigIntType; | ||
}(Type)); | ||
exports.BigIntType = BigIntType; | ||
/** | ||
* @since 2.1.0 | ||
*/ | ||
exports.bigint = new BigIntType(); | ||
/** | ||
* @since 1.0.0 | ||
@@ -241,0 +260,0 @@ */ |
{ | ||
"name": "io-ts", | ||
"version": "2.0.6", | ||
"version": "2.1.0", | ||
"description": "TypeScript compatible runtime type system for IO validation", | ||
@@ -49,3 +49,3 @@ "files": [ | ||
"benchmark": "2.1.4", | ||
"docs-ts": "^0.3.0", | ||
"docs-ts": "^0.3.4", | ||
"doctoc": "^1.4.0", | ||
@@ -52,0 +52,0 @@ "dtslint": "github:gcanti/dtslint", |
184074
5039