Comparing version 0.8.1 to 0.8.2
@@ -15,2 +15,7 @@ # Changelog | ||
# 0.8.2 | ||
- **New Feature** | ||
- add `object` type, closes #86 (@gcanti) | ||
# 0.8.1 | ||
@@ -17,0 +22,0 @@ |
@@ -117,2 +117,9 @@ import { Either } from 'fp-ts/lib/Either'; | ||
export declare const Dictionary: AnyDictionaryType; | ||
export declare class ObjectType implements Type<object> { | ||
readonly _tag: 'ObjectType'; | ||
readonly _A: object; | ||
readonly name: 'object'; | ||
readonly validate: Validate<object>; | ||
} | ||
export declare const object: ObjectType; | ||
export declare class FunctionType implements Type<Function> { | ||
@@ -119,0 +126,0 @@ readonly _tag: 'FunctionType'; |
@@ -141,2 +141,12 @@ "use strict"; | ||
exports.Dictionary = new AnyDictionaryType(); | ||
var ObjectType = /** @class */ (function () { | ||
function ObjectType() { | ||
this._tag = 'ObjectType'; | ||
this.name = 'object'; | ||
this.validate = exports.Dictionary.validate; | ||
} | ||
return ObjectType; | ||
}()); | ||
exports.ObjectType = ObjectType; | ||
exports.object = new ObjectType(); | ||
var FunctionType = /** @class */ (function () { | ||
@@ -143,0 +153,0 @@ function FunctionType() { |
{ | ||
"name": "io-ts", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "TypeScript compatible runtime type system for IO validation", | ||
@@ -5,0 +5,0 @@ "files": ["lib"], |
@@ -145,2 +145,3 @@ # The idea | ||
| never | `never` | `t.never` | | ||
| object | `object` | `t.object` | | ||
| integer | ✘ | `t.Integer` | | ||
@@ -147,0 +148,0 @@ | array of any | `Array<any>` | `t.Array` | |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71633
889
365