@types/rascal 10.0.5 → 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 (3) hide show
  1. rascal/README.md +1 -1
  2. rascal/index.d.ts +82 -53
  3. rascal/package.json +3 -3
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: Mon, 09 May 2022 20:31:35 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
@@ -21,12 +21,14 @@ export interface BindingConfig {
21
21
  }
22
22
 
23
23
  export interface QueueConfig {
24
+ name?: string | undefined;
24
25
  assert?: boolean | undefined;
25
26
  check?: boolean | undefined;
26
27
  options?: Options.AssertQueue | undefined;
27
28
  }
28
29
 
29
30
  export interface ExchangeConfig {
31
+ name?: string | undefined;
30
32
  assert?: boolean | undefined;
31
33
  check?: boolean | undefined;
32
34
  type?: 'direct' | 'fanout' | 'headers' | 'topic' | undefined;
@@ -46,20 +48,24 @@ export interface ConnectionAttributes {
46
48
  query?: string | undefined;
47
49
  url?: string | undefined;
48
50
  loggableUrl?: string | undefined;
49
- options?: {
50
- heartbeat?: number | undefined;
51
- timeout?: number | undefined;
52
- channelMax?: number | undefined;
53
- connection_timeout?: number | undefined;
54
- [key: string]: any;
55
- } | undefined;
56
- socketOptions?: {
57
- timeout?: number | undefined;
58
- clientProperties?: {
59
- connection_name?: string | undefined;
60
- [key: string]: string | undefined;
61
- }
62
- } | 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;
63
69
  }
64
70
 
65
71
  export interface RetryConfig {
@@ -88,10 +94,12 @@ export interface VhostConfig {
88
94
  check?: boolean | undefined;
89
95
  assert?: boolean | undefined;
90
96
  namespace?: string | boolean | undefined;
91
- publicationChannelPools?: {
92
- regularPool?: ChannelPoolConfig | undefined;
93
- confirmPool?: ChannelPoolConfig | undefined;
94
- } | undefined;
97
+ publicationChannelPools?:
98
+ | {
99
+ regularPool?: ChannelPoolConfig | undefined;
100
+ confirmPool?: ChannelPoolConfig | undefined;
101
+ }
102
+ | undefined;
95
103
  connection?: ConnectionConfig | undefined;
96
104
  connections?: ConnectionConfig[] | undefined;
97
105
  connectionStrategy?: 'random' | 'fixed' | undefined;
@@ -99,23 +107,30 @@ export interface VhostConfig {
99
107
  | {
100
108
  [key: string]: ExchangeConfig;
101
109
  }
102
- | string[] | undefined;
110
+ | Array<string | ExchangeConfig>
111
+ | undefined;
103
112
  queues?:
104
113
  | {
105
114
  [key: string]: QueueConfig;
106
115
  }
107
- | string[] | undefined;
116
+ | Array<string | QueueConfig>
117
+ | undefined;
108
118
  bindings?:
109
119
  | {
110
120
  [key: string]: BindingConfig;
111
121
  }
112
- | string[] | undefined;
113
- publications?: {
114
- [key: string]: PublicationConfig;
115
- } | undefined;
116
- subscriptions?: {
117
- [key: string]: SubscriptionConfig;
118
- } | undefined;
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;
119
134
  }
120
135
 
121
136
  export interface PublicationConfig {
@@ -137,12 +152,14 @@ export interface Encryption {
137
152
  }
138
153
 
139
154
  export interface Redelivery {
140
- counters?: {
141
- [key: string]: {
142
- type: 'stub' | 'inMemory' | 'inMemoryCluster';
143
- size?: number | undefined;
144
- };
145
- } | undefined;
155
+ counters?:
156
+ | {
157
+ [key: string]: {
158
+ type: 'stub' | 'inMemory' | 'inMemoryCluster';
159
+ size?: number | undefined;
160
+ };
161
+ }
162
+ | undefined;
146
163
  }
147
164
 
148
165
  export interface Recovery {
@@ -169,31 +186,43 @@ export interface SubscriptionConfig {
169
186
  deferCloseChannel?: number | undefined;
170
187
  encryption?: string | undefined;
171
188
  autoCreated?: boolean | undefined;
172
- redeliveries?: {
173
- counter: string;
174
- limit: number;
175
- timeout?: number | undefined;
176
- } | undefined;
189
+ redeliveries?:
190
+ | {
191
+ counter: string;
192
+ limit: number;
193
+ timeout?: number | undefined;
194
+ }
195
+ | undefined;
177
196
  }
178
197
 
179
198
  interface BrokerConfig {
180
- vhosts?: {
181
- [key: string]: VhostConfig;
182
- } | undefined;
183
- publications?: {
184
- [key: string]: PublicationConfig;
185
- } | undefined;
186
- subscriptions?: {
187
- [key: string]: SubscriptionConfig;
188
- } | undefined;
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;
189
214
  redeliveries?: Redelivery | undefined;
190
- recovery?: {
191
- [key: string]: Recovery | Recovery[];
192
- } | undefined;
215
+ recovery?:
216
+ | {
217
+ [key: string]: Recovery | Recovery[];
218
+ }
219
+ | undefined;
193
220
  defaults?: VhostConfig | undefined;
194
- encryption?: {
195
- [key: string]: Encryption;
196
- } | undefined;
221
+ encryption?:
222
+ | {
223
+ [key: string]: Encryption;
224
+ }
225
+ | undefined;
197
226
  }
198
227
 
199
228
  declare const defaultConfig: {
rascal/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/rascal",
3
- "version": "10.0.5",
3
+ "version": "10.0.6",
4
4
  "description": "TypeScript definitions for rascal",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rascal",
6
6
  "license": "MIT",
@@ -33,6 +33,6 @@
33
33
  "@types/amqplib": "*",
34
34
  "@types/node": "*"
35
35
  },
36
- "typesPublisherContentHash": "cc399a217afe3f05970965ac19dccc5ae2a64c3fee00ecf479e7c1e9fec2c99b",
37
- "typeScriptVersion": "3.9"
36
+ "typesPublisherContentHash": "39cff115e825f7e3bf21408fdd2f53e0170f5c752d9d18a3d1ecd84f370db5cc",
37
+ "typeScriptVersion": "4.0"
38
38
  }