@types/rascal 10.0.3 → 10.0.6

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.
Files changed (4) hide show
  1. rascal/LICENSE +0 -0
  2. rascal/README.md +1 -1
  3. rascal/index.d.ts +154 -121
  4. rascal/package.json +4 -3
rascal/LICENSE CHANGED
File without changes
rascal/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for rascal (https://guidesmiths.github.io
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rascal.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 14 Jul 2020 15:05:38 GMT
11
+ * Last updated: Tue, 14 Jun 2022 19:31:37 GMT
12
12
  * Dependencies: [@types/amqplib](https://npmjs.com/package/@types/amqplib), [@types/node](https://npmjs.com/package/@types/node)
13
13
  * Global values: none
14
14
 
rascal/index.d.ts CHANGED
@@ -12,118 +12,137 @@ import { EventEmitter } from 'events';
12
12
  import { Message, Options, Connection, Channel } from 'amqplib';
13
13
 
14
14
  export interface BindingConfig {
15
- source?: string;
16
- destination?: string;
17
- destinationType?: 'queue' | 'exchange';
18
- bindingKey?: string;
19
- bindingKeys?: string[];
15
+ source?: string | undefined;
16
+ destination?: string | undefined;
17
+ destinationType?: 'queue' | 'exchange' | undefined;
18
+ bindingKey?: string | undefined;
19
+ bindingKeys?: string[] | undefined;
20
20
  options?: any;
21
21
  }
22
22
 
23
23
  export interface QueueConfig {
24
- assert?: boolean;
25
- check?: boolean;
26
- options?: Options.AssertQueue;
24
+ name?: string | undefined;
25
+ assert?: boolean | undefined;
26
+ check?: boolean | undefined;
27
+ options?: Options.AssertQueue | undefined;
27
28
  }
28
29
 
29
30
  export interface ExchangeConfig {
30
- assert?: boolean;
31
- check?: boolean;
32
- type?: 'direct' | 'fanout' | 'headers' | 'topic';
33
- options?: Options.AssertExchange;
31
+ name?: string | undefined;
32
+ assert?: boolean | undefined;
33
+ check?: boolean | undefined;
34
+ type?: 'direct' | 'fanout' | 'headers' | 'topic' | undefined;
35
+ options?: Options.AssertExchange | undefined;
34
36
  }
35
37
 
36
38
  export interface ConnectionAttributes {
37
- slashes?: boolean;
38
- protocol?: string;
39
- hostname?: string;
40
- user?: string;
41
- password?: string;
42
- port?: string | number;
43
- vhost?: string;
44
- auth?: string;
45
- pathname?: string;
46
- query?: string;
47
- url?: string;
48
- loggableUrl?: string;
49
- options?: {
50
- heartbeat?: number;
51
- timeout?: number;
52
- channelMax?: number;
53
- connection_timeout?: number;
54
- [key: string]: any;
55
- };
56
- socketOptions?: {
57
- timeout?: number;
58
- };
39
+ slashes?: boolean | undefined;
40
+ protocol?: string | undefined;
41
+ hostname?: string | undefined;
42
+ user?: string | undefined;
43
+ password?: string | undefined;
44
+ port?: string | number | undefined;
45
+ vhost?: string | undefined;
46
+ auth?: string | undefined;
47
+ pathname?: string | undefined;
48
+ query?: string | undefined;
49
+ url?: string | undefined;
50
+ loggableUrl?: string | undefined;
51
+ options?:
52
+ | {
53
+ heartbeat?: number | undefined;
54
+ timeout?: number | undefined;
55
+ channelMax?: number | undefined;
56
+ connection_timeout?: number | undefined;
57
+ [key: string]: any;
58
+ }
59
+ | undefined;
60
+ socketOptions?:
61
+ | {
62
+ timeout?: number | undefined;
63
+ clientProperties?: {
64
+ connection_name?: string | undefined;
65
+ [key: string]: string | undefined;
66
+ };
67
+ }
68
+ | undefined;
59
69
  }
60
70
 
61
71
  export interface RetryConfig {
62
- factor?: number;
63
- max?: number;
64
- min?: number;
65
- strategy?: 'exponential' | 'linear';
66
- delay?: number;
72
+ factor?: number | undefined;
73
+ max?: number | undefined;
74
+ min?: number | undefined;
75
+ strategy?: 'exponential' | 'linear' | undefined;
76
+ delay?: number | undefined;
67
77
  }
68
78
 
69
79
  export interface ConnectionConfig extends ConnectionAttributes {
70
- retry?: RetryConfig;
71
- management?: ConnectionAttributes;
80
+ retry?: RetryConfig | undefined;
81
+ management?: ConnectionAttributes | undefined;
72
82
  }
73
83
 
74
84
  export interface ChannelPoolConfig {
75
- autostart?: boolean;
76
- evictionRunIntervalMillis?: number;
77
- idleTimeoutMillis?: number;
78
- max?: number;
79
- min?: number;
80
- testOnBorrow?: boolean;
85
+ autostart?: boolean | undefined;
86
+ evictionRunIntervalMillis?: number | undefined;
87
+ idleTimeoutMillis?: number | undefined;
88
+ max?: number | undefined;
89
+ min?: number | undefined;
90
+ testOnBorrow?: boolean | undefined;
81
91
  }
82
92
 
83
93
  export interface VhostConfig {
84
- check?: boolean;
85
- assert?: boolean;
86
- namespace?: string | boolean;
87
- publicationChannelPools?: {
88
- regularPool?: ChannelPoolConfig;
89
- confirmPool?: ChannelPoolConfig;
90
- };
91
- connection?: ConnectionConfig;
92
- connections?: ConnectionConfig[];
93
- connectionStrategy?: 'random' | 'fixed';
94
+ check?: boolean | undefined;
95
+ assert?: boolean | undefined;
96
+ namespace?: string | boolean | undefined;
97
+ publicationChannelPools?:
98
+ | {
99
+ regularPool?: ChannelPoolConfig | undefined;
100
+ confirmPool?: ChannelPoolConfig | undefined;
101
+ }
102
+ | undefined;
103
+ connection?: ConnectionConfig | undefined;
104
+ connections?: ConnectionConfig[] | undefined;
105
+ connectionStrategy?: 'random' | 'fixed' | undefined;
94
106
  exchanges?:
95
107
  | {
96
108
  [key: string]: ExchangeConfig;
97
109
  }
98
- | string[];
110
+ | Array<string | ExchangeConfig>
111
+ | undefined;
99
112
  queues?:
100
113
  | {
101
114
  [key: string]: QueueConfig;
102
115
  }
103
- | string[];
116
+ | Array<string | QueueConfig>
117
+ | undefined;
104
118
  bindings?:
105
119
  | {
106
120
  [key: string]: BindingConfig;
107
121
  }
108
- | string[];
109
- publications?: {
110
- [key: string]: PublicationConfig;
111
- };
112
- subscriptions?: {
113
- [key: string]: SubscriptionConfig;
114
- };
122
+ | Array<string | BindingConfig>
123
+ | undefined;
124
+ publications?:
125
+ | {
126
+ [key: string]: PublicationConfig;
127
+ }
128
+ | undefined;
129
+ subscriptions?:
130
+ | {
131
+ [key: string]: SubscriptionConfig;
132
+ }
133
+ | undefined;
115
134
  }
116
135
 
117
136
  export interface PublicationConfig {
118
- vhost?: string;
119
- exchange?: string;
120
- queue?: string;
121
- routingKey?: string;
122
- confirm?: boolean;
123
- options?: Options.Publish;
124
- autoCreated?: boolean;
125
- deprecated?: boolean;
126
- encryption?: string;
137
+ vhost?: string | undefined;
138
+ exchange?: string | undefined;
139
+ queue?: string | undefined;
140
+ routingKey?: string | undefined;
141
+ confirm?: boolean | undefined;
142
+ options?: Options.Publish | undefined;
143
+ autoCreated?: boolean | undefined;
144
+ deprecated?: boolean | undefined;
145
+ encryption?: string | undefined;
127
146
  }
128
147
 
129
148
  export interface Encryption {
@@ -133,63 +152,77 @@ export interface Encryption {
133
152
  }
134
153
 
135
154
  export interface Redelivery {
136
- counters?: {
137
- [key: string]: {
138
- type: 'stub' | 'inMemory' | 'inMemoryCluster';
139
- size?: number;
140
- };
141
- };
155
+ counters?:
156
+ | {
157
+ [key: string]: {
158
+ type: 'stub' | 'inMemory' | 'inMemoryCluster';
159
+ size?: number | undefined;
160
+ };
161
+ }
162
+ | undefined;
142
163
  }
143
164
 
144
165
  export interface Recovery {
145
166
  strategy: 'ack' | 'nack' | 'republish' | 'forward';
146
- defer?: number;
147
- attempts?: number;
148
- requeue?: boolean;
149
- publication?: string;
150
- options?: PublicationConfig;
151
- xDeathFix?: boolean;
152
- immediateNack?: boolean;
167
+ defer?: number | undefined;
168
+ attempts?: number | undefined;
169
+ requeue?: boolean | undefined;
170
+ publication?: string | undefined;
171
+ options?: PublicationConfig | undefined;
172
+ xDeathFix?: boolean | undefined;
173
+ immediateNack?: boolean | undefined;
153
174
  }
154
175
 
155
176
  export interface SubscriptionConfig {
156
- vhost?: string;
157
- queue?: string;
158
- contentType?: string;
159
- options?: Options.Consume;
160
- prefetch?: number;
161
- retry?: RetryConfig | boolean;
162
- handler?: string;
163
- handlers?: string[];
177
+ vhost?: string | undefined;
178
+ queue?: string | undefined;
179
+ contentType?: string | undefined;
180
+ options?: Options.Consume | undefined;
181
+ prefetch?: number | undefined;
182
+ retry?: RetryConfig | boolean | undefined;
183
+ handler?: string | undefined;
184
+ handlers?: string[] | undefined;
164
185
  recovery?: any;
165
- deferCloseChannel?: number;
166
- encryption?: string;
167
- autoCreated?: boolean;
168
- redeliveries?: {
169
- counter: string;
170
- limit: number;
171
- timeout?: number;
172
- };
186
+ deferCloseChannel?: number | undefined;
187
+ encryption?: string | undefined;
188
+ autoCreated?: boolean | undefined;
189
+ redeliveries?:
190
+ | {
191
+ counter: string;
192
+ limit: number;
193
+ timeout?: number | undefined;
194
+ }
195
+ | undefined;
173
196
  }
174
197
 
175
198
  interface BrokerConfig {
176
- vhosts?: {
177
- [key: string]: VhostConfig;
178
- };
179
- publications?: {
180
- [key: string]: PublicationConfig;
181
- };
182
- subscriptions?: {
183
- [key: string]: SubscriptionConfig;
184
- };
185
- redeliveries?: Redelivery;
186
- recovery?: {
187
- [key: string]: Recovery | Recovery[];
188
- };
189
- defaults?: VhostConfig;
190
- encryption?: {
191
- [key: string]: Encryption;
192
- };
199
+ vhosts?:
200
+ | {
201
+ [key: string]: VhostConfig;
202
+ }
203
+ | undefined;
204
+ publications?:
205
+ | {
206
+ [key: string]: PublicationConfig;
207
+ }
208
+ | undefined;
209
+ subscriptions?:
210
+ | {
211
+ [key: string]: SubscriptionConfig;
212
+ }
213
+ | undefined;
214
+ redeliveries?: Redelivery | undefined;
215
+ recovery?:
216
+ | {
217
+ [key: string]: Recovery | Recovery[];
218
+ }
219
+ | undefined;
220
+ defaults?: VhostConfig | undefined;
221
+ encryption?:
222
+ | {
223
+ [key: string]: Encryption;
224
+ }
225
+ | undefined;
193
226
  }
194
227
 
195
228
  declare const defaultConfig: {
rascal/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@types/rascal",
3
- "version": "10.0.3",
3
+ "version": "10.0.6",
4
4
  "description": "TypeScript definitions for rascal",
5
+ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rascal",
5
6
  "license": "MIT",
6
7
  "contributors": [
7
8
  {
@@ -32,6 +33,6 @@
32
33
  "@types/amqplib": "*",
33
34
  "@types/node": "*"
34
35
  },
35
- "typesPublisherContentHash": "5feb184fb78623c11e47b0a9a31ecdcccd2c3ba29de199c55998d629cb65fd95",
36
- "typeScriptVersion": "3.4"
36
+ "typesPublisherContentHash": "39cff115e825f7e3bf21408fdd2f53e0170f5c752d9d18a3d1ecd84f370db5cc",
37
+ "typeScriptVersion": "4.0"
37
38
  }