@types/pager__jackrabbit 4.8.1 → 4.8.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.
@@ -6,9 +6,89 @@ This package contains type definitions for @pager/jackrabbit (https://github.com
6
6
 
7
7
  # Details
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pager__jackrabbit.
9
+ ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pager__jackrabbit/index.d.ts)
10
+ ````ts
11
+ // Type definitions for @pager/jackrabbit 4.8
12
+ // Project: https://github.com/pagerinc/jackrabbit
13
+ // Definitions by: Benjamin Schuster-Boeckler <https://github.com/dagams>
14
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
15
+ // TypeScript Version: 3.5
16
+
17
+ import * as amqplib from "amqplib";
18
+
19
+ export = jackrabbit;
20
+ declare function jackrabbit(url: string): jackrabbit.JackRabbit;
21
+
22
+ declare namespace jackrabbit {
23
+ type Message = amqplib.Message;
24
+
25
+ type ExchangeOptions = amqplib.Options.AssertExchange & {
26
+ noReply?: boolean | undefined;
27
+ };
28
+
29
+ interface JackRabbit extends NodeJS.EventEmitter {
30
+ default(): Exchange;
31
+ direct(name?: string, options?: ExchangeOptions): Exchange;
32
+ fanout(name?: string, options?: ExchangeOptions): Exchange;
33
+ topic(name?: string, options?: ExchangeOptions): Exchange;
34
+ close(callback?: (e: Error) => any): void;
35
+ getInternals: () => {
36
+ amqp: any;
37
+ connection: amqplib.Connection;
38
+ };
39
+ }
40
+
41
+ enum exchangeType {
42
+ direct = "direct",
43
+ fanout = "fanout",
44
+ topic = "topic",
45
+ }
46
+
47
+ interface Exchange extends NodeJS.EventEmitter {
48
+ name: string;
49
+ type: exchangeType;
50
+ options: amqplib.Options.AssertExchange;
51
+ queue(options: QueueOptions): Queue;
52
+ connect(con: amqplib.Connection): Exchange;
53
+ publish(message: any, options?: PublishOptions): Exchange;
54
+ }
55
+
56
+ type PublishOptions = amqplib.Options.Publish & {
57
+ key: string;
58
+ reply?: AckCallback | undefined;
59
+ };
60
+
61
+ type QueueOptions = amqplib.Options.AssertQueue & {
62
+ name?: string | undefined;
63
+ key?: string | undefined;
64
+ keys?: ReadonlyArray<string> | undefined;
65
+ prefetch?: number | undefined;
66
+ };
67
+
68
+ type AckCallback = (data?: any) => void;
69
+
70
+ interface Queue extends NodeJS.EventEmitter {
71
+ name: string;
72
+ options: QueueOptions;
73
+ connect(con: amqplib.Connection): void;
74
+ consume: (
75
+ callback: (
76
+ data: any,
77
+ ack: AckCallback,
78
+ nack: () => void,
79
+ msg: Message,
80
+ ) => void,
81
+ options?: amqplib.Options.Consume,
82
+ ) => void;
83
+ cancel(done: any): void;
84
+ purge(done: any): void;
85
+ }
86
+ }
87
+
88
+ ````
9
89
 
10
90
  ### Additional Details
11
- * Last updated: Fri, 25 Sep 2020 23:56:20 GMT
91
+ * Last updated: Sun, 24 Sep 2023 06:37:27 GMT
12
92
  * Dependencies: [@types/amqplib](https://npmjs.com/package/@types/amqplib)
13
93
  * Global values: none
14
94
 
@@ -10,67 +10,67 @@ export = jackrabbit;
10
10
  declare function jackrabbit(url: string): jackrabbit.JackRabbit;
11
11
 
12
12
  declare namespace jackrabbit {
13
- type Message = amqplib.Message;
13
+ type Message = amqplib.Message;
14
14
 
15
- type ExchangeOptions = amqplib.Options.AssertExchange & {
16
- noReply?: boolean;
17
- };
18
-
19
- interface JackRabbit extends NodeJS.EventEmitter {
20
- default(): Exchange;
21
- direct(name?: string, options?: ExchangeOptions): Exchange;
22
- fanout(name?: string, options?: ExchangeOptions): Exchange;
23
- topic(name?: string, options?: ExchangeOptions): Exchange;
24
- close(callback?: (e: Error) => any): void;
25
- getInternals: () => {
26
- amqp: any;
27
- connection: amqplib.Connection;
15
+ type ExchangeOptions = amqplib.Options.AssertExchange & {
16
+ noReply?: boolean | undefined;
28
17
  };
29
- }
30
18
 
31
- enum exchangeType {
32
- direct = "direct",
33
- fanout = "fanout",
34
- topic = "topic"
35
- }
19
+ interface JackRabbit extends NodeJS.EventEmitter {
20
+ default(): Exchange;
21
+ direct(name?: string, options?: ExchangeOptions): Exchange;
22
+ fanout(name?: string, options?: ExchangeOptions): Exchange;
23
+ topic(name?: string, options?: ExchangeOptions): Exchange;
24
+ close(callback?: (e: Error) => any): void;
25
+ getInternals: () => {
26
+ amqp: any;
27
+ connection: amqplib.Connection;
28
+ };
29
+ }
30
+
31
+ enum exchangeType {
32
+ direct = "direct",
33
+ fanout = "fanout",
34
+ topic = "topic",
35
+ }
36
36
 
37
- interface Exchange extends NodeJS.EventEmitter {
38
- name: string;
39
- type: exchangeType;
40
- options: amqplib.Options.AssertExchange;
41
- queue(options: QueueOptions): Queue;
42
- connect(con: amqplib.Connection): Exchange;
43
- publish(message: any, options?: PublishOptions): Exchange;
44
- }
37
+ interface Exchange extends NodeJS.EventEmitter {
38
+ name: string;
39
+ type: exchangeType;
40
+ options: amqplib.Options.AssertExchange;
41
+ queue(options: QueueOptions): Queue;
42
+ connect(con: amqplib.Connection): Exchange;
43
+ publish(message: any, options?: PublishOptions): Exchange;
44
+ }
45
45
 
46
- type PublishOptions = amqplib.Options.Publish & {
47
- key: string;
48
- reply?: AckCallback;
49
- };
46
+ type PublishOptions = amqplib.Options.Publish & {
47
+ key: string;
48
+ reply?: AckCallback | undefined;
49
+ };
50
50
 
51
- type QueueOptions = amqplib.Options.AssertQueue & {
52
- name?: string;
53
- key?: string;
54
- keys?: ReadonlyArray<string>;
55
- prefetch?: number;
56
- };
51
+ type QueueOptions = amqplib.Options.AssertQueue & {
52
+ name?: string | undefined;
53
+ key?: string | undefined;
54
+ keys?: ReadonlyArray<string> | undefined;
55
+ prefetch?: number | undefined;
56
+ };
57
57
 
58
- type AckCallback = (data?: any) => void;
58
+ type AckCallback = (data?: any) => void;
59
59
 
60
- interface Queue extends NodeJS.EventEmitter {
61
- name: string;
62
- options: QueueOptions;
63
- connect(con: amqplib.Connection): void;
64
- consume: (
65
- callback: (
66
- data: any,
67
- ack: AckCallback,
68
- nack: () => void,
69
- msg: Message
70
- ) => void,
71
- options?: amqplib.Options.Consume
72
- ) => void;
73
- cancel(done: any): void;
74
- purge(done: any): void;
75
- }
60
+ interface Queue extends NodeJS.EventEmitter {
61
+ name: string;
62
+ options: QueueOptions;
63
+ connect(con: amqplib.Connection): void;
64
+ consume: (
65
+ callback: (
66
+ data: any,
67
+ ack: AckCallback,
68
+ nack: () => void,
69
+ msg: Message,
70
+ ) => void,
71
+ options?: amqplib.Options.Consume,
72
+ ) => void;
73
+ cancel(done: any): void;
74
+ purge(done: any): void;
75
+ }
76
76
  }
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@types/pager__jackrabbit",
3
- "version": "4.8.1",
3
+ "version": "4.8.3",
4
4
  "description": "TypeScript definitions for @pager/jackrabbit",
5
+ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pager__jackrabbit",
5
6
  "license": "MIT",
6
7
  "contributors": [
7
8
  {
@@ -21,6 +22,6 @@
21
22
  "dependencies": {
22
23
  "@types/amqplib": "*"
23
24
  },
24
- "typesPublisherContentHash": "0e48390467bdfcb981319178930350e2ea180b4d7ac2fe35a4aa85bb932900d9",
25
- "typeScriptVersion": "3.5"
25
+ "typesPublisherContentHash": "f3810cbdcf0ee62b855125edcc7a741ba075b874125f9464da2cdce0507026d1",
26
+ "typeScriptVersion": "4.5"
26
27
  }