@midwayjs/decorator 3.4.4 → 3.4.11

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.
@@ -1,6 +1,24 @@
1
+ /**
2
+ * @deprecated Replaced by ConsumerSubscribeTopics
3
+ */
4
+ export declare type ConsumerSubscribeTopic = {
5
+ fromBeginning?: boolean;
6
+ };
7
+ export declare type ConsumerSubscribeTopics = {
8
+ fromBeginning?: boolean;
9
+ };
10
+ export declare type ConsumerRunConfig = {
11
+ autoCommit?: boolean;
12
+ autoCommitInterval?: number | null;
13
+ autoCommitThreshold?: number | null;
14
+ eachBatchAutoResolve?: boolean;
15
+ partitionsConsumedConcurrently?: number;
16
+ };
1
17
  export interface KafkaListenerOptions {
2
18
  propertyKey?: string;
3
19
  topic?: string;
20
+ subscription?: ConsumerSubscribeTopics | ConsumerSubscribeTopic;
21
+ runConfig?: ConsumerRunConfig;
4
22
  }
5
23
  export declare function KafkaListener(topic: string, options?: KafkaListenerOptions): MethodDecorator;
6
24
  //# sourceMappingURL=kafkaListener.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/decorator",
3
- "version": "3.4.4",
3
+ "version": "3.4.11",
4
4
  "description": "definition decorator for midway project",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "f6b5a3ff3d19ae2a0d33a5a14357bee2a8463767"
39
+ "gitHead": "942dd076d60f27d6004640fa6dd9a9724efc559d"
40
40
  }