io-ts
Advanced tools
Comparing version 0.9.0-dev.20171122 to 0.9.0-dev.20171123
@@ -133,3 +133,3 @@ import { Either } from 'fp-ts/lib/Either'; | ||
readonly _tag: 'RecursiveType'; | ||
readonly type: Any; | ||
readonly 'type': Any; | ||
constructor(name: string, is: Is<A>, validate: Validate<any, A>, serialize: Serialize<any, A>); | ||
@@ -175,9 +175,9 @@ } | ||
export declare const dictionary: <D extends Type<any, any>, C extends Type<any, any>>(domain: D, codomain: C, name?: string) => DictionaryType<D, C>; | ||
export declare class UnionType<RTS extends Array<Any>> extends Type<any, TypeOf<RTS['_A']>> { | ||
export declare class UnionType<RTS, A> extends Type<any, A> { | ||
readonly types: RTS; | ||
readonly _tag: 'UnionType'; | ||
constructor(name: string, is: UnionType<RTS>['is'], validate: UnionType<RTS>['validate'], serialize: UnionType<RTS>['serialize'], types: RTS); | ||
constructor(name: string, is: UnionType<RTS, A>['is'], validate: UnionType<RTS, A>['validate'], serialize: UnionType<RTS, A>['serialize'], types: RTS); | ||
} | ||
export declare const union: <RTS extends Type<any, any>[]>(types: RTS, name?: string) => UnionType<RTS>; | ||
export declare class IntersectionType<RTS extends Array<Any>, A> extends Type<any, A> { | ||
export declare const union: <RTS extends Type<any, any>[]>(types: RTS, name?: string) => UnionType<RTS, RTS["_A"]["_A"]>; | ||
export declare class IntersectionType<RTS, A> extends Type<any, A> { | ||
readonly types: RTS; | ||
@@ -192,3 +192,3 @@ readonly _tag: 'IntersectionType'; | ||
export declare function intersection<A extends Any>(types: [A], name?: string): IntersectionType<[A], TypeOf<A>>; | ||
export declare class TupleType<RTS extends Array<Any>, A> extends Type<any, A> { | ||
export declare class TupleType<RTS, A> extends Type<any, A> { | ||
readonly types: RTS; | ||
@@ -195,0 +195,0 @@ readonly _tag: 'TupleType'; |
{ | ||
"name": "io-ts", | ||
"version": "0.9.0-dev.20171122", | ||
"version": "0.9.0-dev.20171123", | ||
"description": "TypeScript compatible runtime type system for IO validation", | ||
@@ -10,9 +10,13 @@ "files": ["lib"], | ||
"lint": "tslint src/**/*.ts test/**/*.ts", | ||
"typings-checker": "typings-checker --allow-expect-error --project typings-checker/tsconfig.json typings-checker/index.ts", | ||
"typings-checker": | ||
"typings-checker --allow-expect-error --project typings-checker/tsconfig.json typings-checker/index.ts", | ||
"mocha": "mocha -r ts-node/register test/*.ts", | ||
"prettier": "prettier --no-semi --single-quote --print-width 120 --parser typescript --list-different \"{src,test}/**/*.ts\"", | ||
"fix-prettier": "prettier --no-semi --single-quote --print-width 120 --parser typescript --write \"{src,test,examples,exercises}/**/*.ts\"", | ||
"prettier": | ||
"prettier --no-semi --single-quote --print-width 120 --parser typescript --list-different \"{src,test}/**/*.ts\"", | ||
"fix-prettier": | ||
"prettier --no-semi --single-quote --print-width 120 --parser typescript --write \"{src,test,examples,exercises}/**/*.ts\"", | ||
"flow-copy-definition-files": "cp src/*.js.flow lib", | ||
"flow-test": "flow status", | ||
"flow-fix-prettier": "prettier --no-semi --single-quote --print-width 120 --parser flow --write \"{src,test,examples,exercises}/**/*.js.flow\"", | ||
"flow-fix-prettier": | ||
"prettier --no-semi --single-quote --print-width 120 --parser flow --write \"{src,test,examples,exercises}/**/*.js.flow\"", | ||
"test": "npm run prettier && npm run lint && npm run typings-checker && npm run mocha", | ||
@@ -19,0 +23,0 @@ "clean": "rm -rf lib/*", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
96835