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 1.1.3 to 1.1.4

5

CHANGELOG.md

@@ -16,2 +16,7 @@ # Changelog

# 1.1.4
* **Internal**
* fix broken build with `typescript@2.9.1`, closes #174 (@gcanti)
# 1.1.3

@@ -18,0 +23,0 @@

22

lib/index.d.ts
import { Either } from 'fp-ts/lib/Either';
import { Predicate } from 'fp-ts/lib/function';
declare global {
declare global {
interface Array<T> {

@@ -8,3 +8,5 @@ _A: T;

}
export declare type mixed = object | number | string | boolean | symbol | undefined | null;
export declare type mixed = {
[key: string]: any;
} | object | number | string | boolean | symbol | undefined | null;
export interface ContextEntry {

@@ -51,10 +53,10 @@ readonly key: string;

constructor(
/** a unique name for this runtime type */
name: string,
/** a custom type guard */
is: Is<A>,
/** succeeds if a value of type I can be decoded to a value of type A */
validate: Validate<I, A>,
/** converts a value of type A to a value of type O */
encode: Encode<A, O>);
/** a unique name for this runtime type */
name: string,
/** a custom type guard */
is: Is<A>,
/** succeeds if a value of type I can be decoded to a value of type A */
validate: Validate<I, A>,
/** converts a value of type A to a value of type O */
encode: Encode<A, O>);
pipe<B>(ab: Type<B, A, A>, name?: string): Type<B, O, I>;

@@ -61,0 +63,0 @@ asDecoder(): Decoder<I, A>;

{
"name": "io-ts",
"version": "1.1.3",
"version": "1.1.4",
"description": "TypeScript compatible runtime type system for IO validation",

@@ -46,3 +46,3 @@ "files": ["lib"],

"tslint-config-standard": "7.0.0",
"typescript": "2.8.3",
"typescript": "2.9.1",
"typings-checker": "2.0.0"

@@ -49,0 +49,0 @@ },

@@ -80,3 +80,3 @@ [![build status](https://img.shields.io/travis/gcanti/io-ts/master.svg?style=flat-square)](https://travis-ci.org/gcanti/io-ts)

The stable version is tested against TypeScript 2.8.x
The stable version is tested against TypeScript 2.9.x

@@ -83,0 +83,0 @@ # Error reporters

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