t-tasks 0.9.4 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/maybe.d.ts +3 -3
- package/dist/t-tasks.esm.js +1 -2030
- package/dist/t-tasks.esm.js.map +1 -1
- package/dist/t-tasks.js +2 -0
- package/dist/t-tasks.js.map +1 -0
- package/dist/t-tasks.modern.js +2 -0
- package/dist/t-tasks.modern.js.map +1 -0
- package/dist/t-tasks.umd.js +2 -0
- package/dist/t-tasks.umd.js.map +1 -0
- package/dist/task.d.ts +18 -1
- package/package.json +23 -27
- package/src/maybe.ts +3 -3
- package/src/task.ts +41 -12
- package/dist/index.js +0 -8
- package/dist/t-tasks.cjs.development.js +0 -2021
- package/dist/t-tasks.cjs.development.js.map +0 -1
- package/dist/t-tasks.cjs.production.min.js +0 -2
- package/dist/t-tasks.cjs.production.min.js.map +0 -1
package/dist/maybe.d.ts
CHANGED
|
@@ -498,7 +498,7 @@ export declare namespace Maybe {
|
|
|
498
498
|
* @param value possibly undefined value
|
|
499
499
|
* @returns either 'just value' or 'nothing'
|
|
500
500
|
*/
|
|
501
|
-
function fromOptional
|
|
501
|
+
function fromOptional(value: undefined): Nothing<never>;
|
|
502
502
|
function fromOptional<R>(value: Exclude<R, undefined>): Just<R>;
|
|
503
503
|
function fromOptional<R>(value: R | undefined): Maybe<R>;
|
|
504
504
|
/**
|
|
@@ -509,8 +509,8 @@ export declare namespace Maybe {
|
|
|
509
509
|
* @param value possibly undefined value
|
|
510
510
|
* @returns either 'just value' or 'nothing'
|
|
511
511
|
*/
|
|
512
|
-
function fromNullable
|
|
513
|
-
function fromNullable
|
|
512
|
+
function fromNullable(value: undefined): Nothing<never>;
|
|
513
|
+
function fromNullable(value: null): Nothing<never>;
|
|
514
514
|
function fromNullable<R>(value: Exclude<R, null | undefined>): Just<R>;
|
|
515
515
|
function fromNullable<R>(value: R | null | undefined): Maybe<R>;
|
|
516
516
|
/**
|