diff --git a/package.json b/package.json index b19f992e..d090d814 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pure-ts", - "version": "0.0.2", + "version": "0.10.1", "description": "Functional programming standard library for TypeScript ", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/utils/Validation.ts b/src/utils/Validation.ts index b91a8c9f..cf399cf7 100644 --- a/src/utils/Validation.ts +++ b/src/utils/Validation.ts @@ -1,9 +1,8 @@ import { Either, Left, Right } from '../adts/Either' -import { Tuple } from '../adts/Tuple' import { Maybe, Just, Nothing } from '../adts/Maybe' -type Validator = (value: T) => boolean -type ValidationTuple = [Validator, Err] +export type Validator = (value: T) => boolean +export type ValidationTuple = [Validator, Err] export abstract class Validate { static all(value: T, validations: ValidationTuple[]): Either {