@perfective/maybe
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -1,3 +0,4 @@ | ||
export { just, maybe, nil, nothing, nullable, optional, } from './maybe/maybe'; | ||
export { Maybe, just, maybe, nil, nothing, nullable, optional, } from './maybe/maybe'; | ||
export { isAbsent, isDefined, isNotNull, isNull, isPresent, isUndefined, } from './maybe/value'; | ||
export { fail, panic, } from './maybe/error'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var maybe_1 = require("./maybe/maybe"); | ||
exports.Maybe = maybe_1.Maybe; | ||
exports.just = maybe_1.just; | ||
@@ -20,1 +21,2 @@ exports.maybe = maybe_1.maybe; | ||
exports.panic = error_1.panic; | ||
//# sourceMappingURL=index.js.map |
import { Nullary } from './maybe'; | ||
export declare function fail(message?: string): Nullary<never>; | ||
export declare function panic<E extends Error>(error: E): Nullary<never>; | ||
//# sourceMappingURL=error.d.ts.map |
@@ -15,1 +15,2 @@ "use strict"; | ||
exports.panic = panic; | ||
//# sourceMappingURL=error.js.map |
export {}; | ||
//# sourceMappingURL=error.spec.d.ts.map |
@@ -20,1 +20,2 @@ "use strict"; | ||
}); | ||
//# sourceMappingURL=error.spec.js.map |
@@ -6,3 +6,3 @@ export declare type Nullary<T> = () => T; | ||
export declare type Bind<T, R = T> = Unary<T, Maybe<R>> | Unary<T, R>; | ||
export declare class Maybe<T> { | ||
export declare class Maybe<T> implements Maybe<T> { | ||
readonly value?: T | null | undefined; | ||
@@ -26,1 +26,2 @@ constructor(value?: T | null | undefined); | ||
export declare function fallbackTo<T>(fallback: Fallback<T>): T; | ||
//# sourceMappingURL=maybe.d.ts.map |
@@ -90,1 +90,2 @@ "use strict"; | ||
exports.fallbackTo = fallbackTo; | ||
//# sourceMappingURL=maybe.js.map |
export {}; | ||
//# sourceMappingURL=maybe.spec.d.ts.map |
@@ -282,1 +282,2 @@ "use strict"; | ||
}); | ||
//# sourceMappingURL=maybe.spec.js.map |
@@ -7,1 +7,2 @@ export declare function isDefined<T>(value?: T): value is T; | ||
export declare function isAbsent<T>(value?: T | null): value is undefined | null; | ||
//# sourceMappingURL=value.d.ts.map |
@@ -27,1 +27,2 @@ "use strict"; | ||
exports.isAbsent = isAbsent; | ||
//# sourceMappingURL=value.js.map |
{ | ||
"name": "@perfective/maybe", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Maybe monad-like container", | ||
@@ -9,5 +9,3 @@ "author": "Andrey Mikheychik <a.mikheychik@gmail.com>", | ||
"main": "dist/index.js", | ||
"directories": { | ||
"lib": "dist" | ||
}, | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
@@ -14,0 +12,0 @@ "dist" |
Sorry, the diff of this file is not supported yet
38823
29
487