@matechs/effect
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -6,3 +6,3 @@ import { Raise, Abort, Interrupt, Exit, Done } from "./original/exit"; | ||
export declare const isInterrupt: <E, A>(e: Exit<E, A>) => e is Interrupt; | ||
declare function fold_<E, A, R>(e: Exit<E, A>, onDone: (v: A) => R, onRaise: (v: E) => R, onAbort: (v: unknown) => R, onInterrupt: () => R): R; | ||
declare function fold_<E, A, R>(e: Exit<E, A>, onDone: (v: A) => R, onRaise: (v: E) => R, onAbort: (v: unknown) => R, onInterrupt: (i: Interrupt) => R): R; | ||
export declare const exit: { | ||
@@ -9,0 +9,0 @@ fold: typeof fold_; |
@@ -14,3 +14,3 @@ export const isDone = (e) => e._tag === "Done"; | ||
case "Interrupt": | ||
return onInterrupt(); | ||
return onInterrupt(e); | ||
} | ||
@@ -17,0 +17,0 @@ } |
@@ -6,3 +6,3 @@ import { Raise, Abort, Interrupt, Exit, Done } from "./original/exit"; | ||
export declare const isInterrupt: <E, A>(e: Exit<E, A>) => e is Interrupt; | ||
declare function fold_<E, A, R>(e: Exit<E, A>, onDone: (v: A) => R, onRaise: (v: E) => R, onAbort: (v: unknown) => R, onInterrupt: () => R): R; | ||
declare function fold_<E, A, R>(e: Exit<E, A>, onDone: (v: A) => R, onRaise: (v: E) => R, onAbort: (v: unknown) => R, onInterrupt: (i: Interrupt) => R): R; | ||
export declare const exit: { | ||
@@ -9,0 +9,0 @@ fold: typeof fold_; |
@@ -20,3 +20,3 @@ "use strict"; | ||
case "Interrupt": | ||
return onInterrupt(); | ||
return onInterrupt(e); | ||
} | ||
@@ -23,0 +23,0 @@ } |
{ | ||
"name": "@matechs/effect", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"license": "MIT", | ||
@@ -41,3 +41,3 @@ "private": false, | ||
}, | ||
"gitHead": "361b726ddf808d4fcf8c1d61341441a6bdba5259" | ||
"gitHead": "49497f5d628044cfc2b1bffed0ccccf84af798f5" | ||
} |
524210