@jagreehal/workflow 1.2.0 → 1.3.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/core.cjs +1 -1
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +20 -2
- package/dist/core.d.ts +20 -2
- package/dist/core.js +1 -1
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/workflow.cjs.map +1 -1
- package/dist/workflow.d.cts +3 -1
- package/dist/workflow.d.ts +3 -1
- package/dist/workflow.js.map +1 -1
- package/package.json +2 -1
package/dist/workflow.d.cts
CHANGED
|
@@ -165,7 +165,9 @@ type AnyResultFn = (...args: any[]) => Result<any, any, any> | Promise<Result<an
|
|
|
165
165
|
* Example: ErrorsOfDeps<{ fetchUser: typeof fetchUser, fetchPosts: typeof fetchPosts }>
|
|
166
166
|
* yields: 'NOT_FOUND' | 'FETCH_ERROR'
|
|
167
167
|
*/
|
|
168
|
-
type ErrorsOfDeps<Deps extends Record<string, AnyResultFn>> =
|
|
168
|
+
type ErrorsOfDeps<Deps extends Record<string, AnyResultFn>> = {
|
|
169
|
+
[K in keyof Deps]: ErrorOf<Deps[K]>;
|
|
170
|
+
}[keyof Deps];
|
|
169
171
|
/**
|
|
170
172
|
* Extract union of cause types from a deps object.
|
|
171
173
|
* Example: CausesOfDeps<{ fetchUser: typeof fetchUser }> where fetchUser returns Result<User, "NOT_FOUND", Error>
|
package/dist/workflow.d.ts
CHANGED
|
@@ -165,7 +165,9 @@ type AnyResultFn = (...args: any[]) => Result<any, any, any> | Promise<Result<an
|
|
|
165
165
|
* Example: ErrorsOfDeps<{ fetchUser: typeof fetchUser, fetchPosts: typeof fetchPosts }>
|
|
166
166
|
* yields: 'NOT_FOUND' | 'FETCH_ERROR'
|
|
167
167
|
*/
|
|
168
|
-
type ErrorsOfDeps<Deps extends Record<string, AnyResultFn>> =
|
|
168
|
+
type ErrorsOfDeps<Deps extends Record<string, AnyResultFn>> = {
|
|
169
|
+
[K in keyof Deps]: ErrorOf<Deps[K]>;
|
|
170
|
+
}[keyof Deps];
|
|
169
171
|
/**
|
|
170
172
|
* Extract union of cause types from a deps object.
|
|
171
173
|
* Example: CausesOfDeps<{ fetchUser: typeof fetchUser }> where fetchUser returns Result<User, "NOT_FOUND", Error>
|