@types/pager__jackrabbit 4.8.2 → 4.8.4

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