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 0.8.1 to 0.8.2

5

CHANGELOG.md

@@ -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() {

2

package.json
{
"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

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