Skip to content

Commit

Permalink
First public publish
Browse files Browse the repository at this point in the history
  • Loading branch information
gigobyte committed Jul 11, 2018
1 parent a924974 commit 0114291
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 2 additions & 3 deletions src/utils/Validation.ts
Original file line number Diff line number Diff line change
@@ -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<T> = (value: T) => boolean
type ValidationTuple<T, Err> = [Validator<T>, Err]
export type Validator<T> = (value: T) => boolean
export type ValidationTuple<T, Err> = [Validator<T>, Err]

export abstract class Validate {
static all<T, Err>(value: T, validations: ValidationTuple<T, Err>[]): Either<Err[], T> {
Expand Down

0 comments on commit 0114291

Please sign in to comment.