@visisoft/staticland
Advanced tools
Comparing version 0.1.41 to 0.1.42
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.41 visisoft.de | ||
(Build date: 4/27/2022 - 12:27:45 AM) | ||
@visisoft/staticland v.0.1.42 visisoft.de | ||
(Build date: 4/27/2022 - 5:20:07 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.41 visisoft.de | ||
(Build date: 4/27/2022 - 12:27:45 AM) | ||
@visisoft/staticland v.0.1.42 visisoft.de | ||
(Build date: 4/27/2022 - 5:20:07 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.41 visisoft.de | ||
(Build date: 4/27/2022 - 12:27:45 AM) | ||
@visisoft/staticland v.0.1.42 visisoft.de | ||
(Build date: 4/27/2022 - 5:20:07 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.41 visisoft.de | ||
(Build date: 4/27/2022 - 12:27:45 AM) | ||
@visisoft/staticland v.0.1.42 visisoft.de | ||
(Build date: 4/27/2022 - 5:20:07 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.41 visisoft.de | ||
(Build date: 4/27/2022 - 12:27:45 AM) | ||
@visisoft/staticland v.0.1.42 visisoft.de | ||
(Build date: 4/27/2022 - 5:20:07 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.41 visisoft.de | ||
(Build date: 4/27/2022 - 12:27:45 AM) | ||
@visisoft/staticland v.0.1.42 visisoft.de | ||
(Build date: 4/27/2022 - 5:20:07 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.41 visisoft.de | ||
(Build date: 4/27/2022 - 12:27:45 AM) | ||
@visisoft/staticland v.0.1.42 visisoft.de | ||
(Build date: 4/27/2022 - 5:20:07 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.41 visisoft.de | ||
(Build date: 4/27/2022 - 12:27:45 AM) | ||
@visisoft/staticland v.0.1.42 visisoft.de | ||
(Build date: 4/27/2022 - 5:20:07 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
@@ -24,5 +24,6 @@ import {BinaryCurriedFn, Opaque, PlainObjectOf, TernaryCurriedFn} from './common'; | ||
export function either<A, B, C>(onLeft: (c: C) => B, onRight: (a: A) => B, m: Either<A>): B; | ||
export function either<A, B, C>(onLeft: (c: C) => B, onRight: (a: A) => B): (m: Either<A>) => B; | ||
export function either<A, B, C>(onLeft: (c: C) => B): (onRight: (a: A) => B) => (m: Either<A>) => B; | ||
export function either<A, B>(onLeft: (c?: any) => B, onRight: (a: A) => B, m: Either<A>): B; | ||
export function either<A, B>(onLeft: () => B, onRight: (a: A) => B): (m: Either<A>) => B; | ||
export function either<A, B>(onLeft: (c: any) => B, onRight: (a: A) => B): (m: Either<A>) => B; | ||
export function either<B>(onLeft: (c: any) => B): <A>(onRight: (a: A) => B) => (m: Either<A>) => B; | ||
@@ -29,0 +30,0 @@ export function isEither(me: Either<any>): boolean; |
@@ -6,3 +6,3 @@ import {BinaryCurriedFn, Opaque, PlainObjectOf, TernaryCurriedFn} from './common'; | ||
export type Nothing = Opaque<"Nothing", void>; | ||
export type Maybe<T> = Just<T> | Nothing; | ||
export type Maybe<T> = Nothing | Just<T>; | ||
@@ -9,0 +9,0 @@ type Applicative<T> = Promise<T>|Either<T>|PlainObjectOf<T>; |
@@ -109,3 +109,3 @@ { | ||
"type": "module", | ||
"version": "0.1.41" | ||
"version": "0.1.42" | ||
} |
@@ -26,2 +26,3 @@ [![NPM Version](https://img.shields.io/npm/v/@visisoft/staticland.svg?style=flat-square)](https://www.npmjs.com/package/@visisoft/staticland) ![Statements](https://img.shields.io/badge/statements-91.2%25-brightgreen.svg?style=flat-square) | ||
On the other hand, | ||
- the current data type can be derived by looking at the code, | ||
@@ -28,0 +29,0 @@ - using the TypeScript signatures, the code inspector can deduce the type correctness, and |
@@ -24,5 +24,6 @@ import {BinaryCurriedFn, Opaque, PlainObjectOf, TernaryCurriedFn} from './common'; | ||
export function either<A, B, C>(onLeft: (c: C) => B, onRight: (a: A) => B, m: Either<A>): B; | ||
export function either<A, B, C>(onLeft: (c: C) => B, onRight: (a: A) => B): (m: Either<A>) => B; | ||
export function either<A, B, C>(onLeft: (c: C) => B): (onRight: (a: A) => B) => (m: Either<A>) => B; | ||
export function either<A, B>(onLeft: (c?: any) => B, onRight: (a: A) => B, m: Either<A>): B; | ||
export function either<A, B>(onLeft: () => B, onRight: (a: A) => B): (m: Either<A>) => B; | ||
export function either<A, B>(onLeft: (c: any) => B, onRight: (a: A) => B): (m: Either<A>) => B; | ||
export function either<B>(onLeft: (c: any) => B): <A>(onRight: (a: A) => B) => (m: Either<A>) => B; | ||
@@ -29,0 +30,0 @@ export function isEither(me: Either<any>): boolean; |
@@ -6,3 +6,3 @@ import {BinaryCurriedFn, Opaque, PlainObjectOf, TernaryCurriedFn} from './common'; | ||
export type Nothing = Opaque<"Nothing", void>; | ||
export type Maybe<T> = Just<T> | Nothing; | ||
export type Maybe<T> = Nothing | Just<T>; | ||
@@ -9,0 +9,0 @@ type Applicative<T> = Promise<T>|Either<T>|PlainObjectOf<T>; |
210084
5525
152