ioredis-streams 0.0.2 → 0.0.3
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/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/index.ts +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ export declare type HandleFunc = <T = any, E = string>(event: E | '*', handler:
|
|
|
75
75
|
continue: () => void;
|
|
76
76
|
}>;
|
|
77
77
|
};
|
|
78
|
-
export declare type ProduceFunc =
|
|
78
|
+
export declare type ProduceFunc = (...events: IEvent<any>[]) => {
|
|
79
79
|
produceMany: ProduceFunc;
|
|
80
80
|
flush: () => Promise<void>;
|
|
81
81
|
};
|
|
@@ -85,7 +85,7 @@ export declare type StreamGroupConsumer = {
|
|
|
85
85
|
continue: () => void;
|
|
86
86
|
}>;
|
|
87
87
|
handle: HandleFunc;
|
|
88
|
-
produce:
|
|
88
|
+
produce: (...events: IEvent<any>[]) => Promise<void>;
|
|
89
89
|
produceMany: ProduceFunc;
|
|
90
90
|
with: <O extends FunctionsMap<R>, R>(events: O) => WithTypedHandlers<O, R> & StreamGroupConsumer;
|
|
91
91
|
};
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -458,7 +458,7 @@ export type HandleFunc = <T = any, E = string>(event: E | '*', handler: EventHan
|
|
|
458
458
|
}>;
|
|
459
459
|
};
|
|
460
460
|
|
|
461
|
-
export type ProduceFunc =
|
|
461
|
+
export type ProduceFunc = (...events: IEvent<any>[]) => {
|
|
462
462
|
produceMany: ProduceFunc;
|
|
463
463
|
flush: () => Promise<void>;
|
|
464
464
|
}
|
|
@@ -469,7 +469,7 @@ export type StreamGroupConsumer = {
|
|
|
469
469
|
continue: () => void;
|
|
470
470
|
}>;
|
|
471
471
|
handle: HandleFunc;
|
|
472
|
-
produce:
|
|
472
|
+
produce: (...events: IEvent<any>[]) => Promise<void>;
|
|
473
473
|
produceMany: ProduceFunc;
|
|
474
474
|
with: <O extends FunctionsMap<R>, R>(events: O) => WithTypedHandlers<O, R> & StreamGroupConsumer;
|
|
475
475
|
}
|