@ls-stack/utils 3.12.0 → 3.12.2
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/lib/asyncQueue.d.cts +2 -2
- package/lib/asyncQueue.d.ts +2 -2
- package/package.json +1 -1
package/lib/asyncQueue.d.cts
CHANGED
|
@@ -55,8 +55,8 @@ type AddOptionsWithId<I, T, E extends ResultValidErrors> = Omit<AddOptions<I, T,
|
|
|
55
55
|
};
|
|
56
56
|
declare class AsyncQueueWithMeta<T, I, E extends ResultValidErrors = Error> extends AsyncQueue<T, E, I> {
|
|
57
57
|
constructor(options?: AsyncQueueOptions);
|
|
58
|
-
add(fn: (ctx: RunCtx<I>) => Promise<Result<T, E>> | Result<T, E>, options
|
|
59
|
-
resultifyAdd(fn: (ctx: RunCtx<I>) => Promise<T> | T, options
|
|
58
|
+
add(fn: (ctx: RunCtx<I>) => Promise<Result<T, E>> | Result<T, E>, options: AddOptionsWithId<I, T, E>): Promise<Result<T, E | Error>>;
|
|
59
|
+
resultifyAdd(fn: (ctx: RunCtx<I>) => Promise<T> | T, options: AddOptionsWithId<I, T, E>): Promise<Result<T, E | Error>>;
|
|
60
60
|
}
|
|
61
61
|
declare function createAsyncQueue<T, E extends ResultValidErrors = Error>(options?: AsyncQueueOptions): AsyncQueue<T, E>;
|
|
62
62
|
declare function createAsyncQueueWithMeta<T, I, E extends ResultValidErrors = Error>(options?: AsyncQueueOptions): AsyncQueueWithMeta<T, I, E>;
|
package/lib/asyncQueue.d.ts
CHANGED
|
@@ -55,8 +55,8 @@ type AddOptionsWithId<I, T, E extends ResultValidErrors> = Omit<AddOptions<I, T,
|
|
|
55
55
|
};
|
|
56
56
|
declare class AsyncQueueWithMeta<T, I, E extends ResultValidErrors = Error> extends AsyncQueue<T, E, I> {
|
|
57
57
|
constructor(options?: AsyncQueueOptions);
|
|
58
|
-
add(fn: (ctx: RunCtx<I>) => Promise<Result<T, E>> | Result<T, E>, options
|
|
59
|
-
resultifyAdd(fn: (ctx: RunCtx<I>) => Promise<T> | T, options
|
|
58
|
+
add(fn: (ctx: RunCtx<I>) => Promise<Result<T, E>> | Result<T, E>, options: AddOptionsWithId<I, T, E>): Promise<Result<T, E | Error>>;
|
|
59
|
+
resultifyAdd(fn: (ctx: RunCtx<I>) => Promise<T> | T, options: AddOptionsWithId<I, T, E>): Promise<Result<T, E | Error>>;
|
|
60
60
|
}
|
|
61
61
|
declare function createAsyncQueue<T, E extends ResultValidErrors = Error>(options?: AsyncQueueOptions): AsyncQueue<T, E>;
|
|
62
62
|
declare function createAsyncQueueWithMeta<T, I, E extends ResultValidErrors = Error>(options?: AsyncQueueOptions): AsyncQueueWithMeta<T, I, E>;
|