@types/rascal 10.0.6 → 10.0.8

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 -2
  3. rascal/index.d.ts +63 -71
  4. rascal/package.json +9 -9
rascal/LICENSE CHANGED
File without changes
rascal/README.md CHANGED
@@ -8,9 +8,8 @@ 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 Jun 2022 19:31:37 GMT
11
+ * Last updated: Wed, 18 Oct 2023 11:45:05 GMT
12
12
  * Dependencies: [@types/amqplib](https://npmjs.com/package/@types/amqplib), [@types/node](https://npmjs.com/package/@types/node)
13
- * Global values: none
14
13
 
15
14
  # Credits
16
15
  These definitions were written by [ethan](https://github.com/zijin-m), [MartinTechy](https://github.com/MartinTechy), and [Nikita Volodin](https://github.com/qlonik).
rascal/index.d.ts CHANGED
@@ -1,20 +1,12 @@
1
- // Type definitions for rascal 10.0
2
- // Project: https://guidesmiths.github.io/rascal/
3
- // Definitions by: ethan <https://github.com/zijin-m>
4
- // MartinTechy <https://github.com/MartinTechy>
5
- // Nikita Volodin <https://github.com/qlonik>
6
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
- // TypeScript Version: 3.4
8
-
9
1
  /// <reference types="node" />
10
2
 
11
- import { EventEmitter } from 'events';
12
- import { Message, Options, Connection, Channel } from 'amqplib';
3
+ import { Channel, Connection, Message, Options } from "amqplib";
4
+ import { EventEmitter } from "events";
13
5
 
14
6
  export interface BindingConfig {
15
7
  source?: string | undefined;
16
8
  destination?: string | undefined;
17
- destinationType?: 'queue' | 'exchange' | undefined;
9
+ destinationType?: "queue" | "exchange" | undefined;
18
10
  bindingKey?: string | undefined;
19
11
  bindingKeys?: string[] | undefined;
20
12
  options?: any;
@@ -31,7 +23,7 @@ export interface ExchangeConfig {
31
23
  name?: string | undefined;
32
24
  assert?: boolean | undefined;
33
25
  check?: boolean | undefined;
34
- type?: 'direct' | 'fanout' | 'headers' | 'topic' | undefined;
26
+ type?: "direct" | "fanout" | "headers" | "topic" | undefined;
35
27
  options?: Options.AssertExchange | undefined;
36
28
  }
37
29
 
@@ -50,21 +42,21 @@ export interface ConnectionAttributes {
50
42
  loggableUrl?: string | undefined;
51
43
  options?:
52
44
  | {
53
- heartbeat?: number | undefined;
54
- timeout?: number | undefined;
55
- channelMax?: number | undefined;
56
- connection_timeout?: number | undefined;
57
- [key: string]: any;
58
- }
45
+ heartbeat?: number | undefined;
46
+ timeout?: number | undefined;
47
+ channelMax?: number | undefined;
48
+ connection_timeout?: number | undefined;
49
+ [key: string]: any;
50
+ }
59
51
  | undefined;
60
52
  socketOptions?:
61
53
  | {
62
- timeout?: number | undefined;
63
- clientProperties?: {
64
- connection_name?: string | undefined;
65
- [key: string]: string | undefined;
66
- };
67
- }
54
+ timeout?: number | undefined;
55
+ clientProperties?: {
56
+ connection_name?: string | undefined;
57
+ [key: string]: string | undefined;
58
+ };
59
+ }
68
60
  | undefined;
69
61
  }
70
62
 
@@ -72,7 +64,7 @@ export interface RetryConfig {
72
64
  factor?: number | undefined;
73
65
  max?: number | undefined;
74
66
  min?: number | undefined;
75
- strategy?: 'exponential' | 'linear' | undefined;
67
+ strategy?: "exponential" | "linear" | undefined;
76
68
  delay?: number | undefined;
77
69
  }
78
70
 
@@ -96,40 +88,40 @@ export interface VhostConfig {
96
88
  namespace?: string | boolean | undefined;
97
89
  publicationChannelPools?:
98
90
  | {
99
- regularPool?: ChannelPoolConfig | undefined;
100
- confirmPool?: ChannelPoolConfig | undefined;
101
- }
91
+ regularPool?: ChannelPoolConfig | undefined;
92
+ confirmPool?: ChannelPoolConfig | undefined;
93
+ }
102
94
  | undefined;
103
95
  connection?: ConnectionConfig | undefined;
104
96
  connections?: ConnectionConfig[] | undefined;
105
- connectionStrategy?: 'random' | 'fixed' | undefined;
97
+ connectionStrategy?: "random" | "fixed" | undefined;
106
98
  exchanges?:
107
99
  | {
108
- [key: string]: ExchangeConfig;
109
- }
100
+ [key: string]: ExchangeConfig;
101
+ }
110
102
  | Array<string | ExchangeConfig>
111
103
  | undefined;
112
104
  queues?:
113
105
  | {
114
- [key: string]: QueueConfig;
115
- }
106
+ [key: string]: QueueConfig;
107
+ }
116
108
  | Array<string | QueueConfig>
117
109
  | undefined;
118
110
  bindings?:
119
111
  | {
120
- [key: string]: BindingConfig;
121
- }
112
+ [key: string]: BindingConfig;
113
+ }
122
114
  | Array<string | BindingConfig>
123
115
  | undefined;
124
116
  publications?:
125
117
  | {
126
- [key: string]: PublicationConfig;
127
- }
118
+ [key: string]: PublicationConfig;
119
+ }
128
120
  | undefined;
129
121
  subscriptions?:
130
122
  | {
131
- [key: string]: SubscriptionConfig;
132
- }
123
+ [key: string]: SubscriptionConfig;
124
+ }
133
125
  | undefined;
134
126
  }
135
127
 
@@ -154,16 +146,16 @@ export interface Encryption {
154
146
  export interface Redelivery {
155
147
  counters?:
156
148
  | {
157
- [key: string]: {
158
- type: 'stub' | 'inMemory' | 'inMemoryCluster';
159
- size?: number | undefined;
160
- };
161
- }
149
+ [key: string]: {
150
+ type: "stub" | "inMemory" | "inMemoryCluster";
151
+ size?: number | undefined;
152
+ };
153
+ }
162
154
  | undefined;
163
155
  }
164
156
 
165
157
  export interface Recovery {
166
- strategy: 'ack' | 'nack' | 'republish' | 'forward';
158
+ strategy: "ack" | "nack" | "republish" | "forward";
167
159
  defer?: number | undefined;
168
160
  attempts?: number | undefined;
169
161
  requeue?: boolean | undefined;
@@ -188,40 +180,40 @@ export interface SubscriptionConfig {
188
180
  autoCreated?: boolean | undefined;
189
181
  redeliveries?:
190
182
  | {
191
- counter: string;
192
- limit: number;
193
- timeout?: number | undefined;
194
- }
183
+ counter: string;
184
+ limit: number;
185
+ timeout?: number | undefined;
186
+ }
195
187
  | undefined;
196
188
  }
197
189
 
198
190
  interface BrokerConfig {
199
191
  vhosts?:
200
192
  | {
201
- [key: string]: VhostConfig;
202
- }
193
+ [key: string]: VhostConfig;
194
+ }
203
195
  | undefined;
204
196
  publications?:
205
197
  | {
206
- [key: string]: PublicationConfig;
207
- }
198
+ [key: string]: PublicationConfig;
199
+ }
208
200
  | undefined;
209
201
  subscriptions?:
210
202
  | {
211
- [key: string]: SubscriptionConfig;
212
- }
203
+ [key: string]: SubscriptionConfig;
204
+ }
213
205
  | undefined;
214
206
  redeliveries?: Redelivery | undefined;
215
207
  recovery?:
216
208
  | {
217
- [key: string]: Recovery | Recovery[];
218
- }
209
+ [key: string]: Recovery | Recovery[];
210
+ }
219
211
  | undefined;
220
212
  defaults?: VhostConfig | undefined;
221
213
  encryption?:
222
214
  | {
223
- [key: string]: Encryption;
224
- }
215
+ [key: string]: Encryption;
216
+ }
225
217
  | undefined;
226
218
  }
227
219
 
@@ -445,10 +437,10 @@ export class SubscriberSessionAsPromised extends EventEmitter {
445
437
  name: string;
446
438
  cancel(): Promise<void>;
447
439
 
448
- on(event: 'message', listener: (message: Message, content: any, ackOrNackFn: AckOrNack) => void): this;
449
- on(event: 'error' | 'cancelled', listener: (err: Error) => void): this;
440
+ on(event: "message", listener: (message: Message, content: any, ackOrNackFn: AckOrNack) => void): this;
441
+ on(event: "error" | "cancelled", listener: (err: Error) => void): this;
450
442
  on(
451
- event: 'invalid_content' | 'redeliveries_exceeded' | 'redeliveries_error',
443
+ event: "invalid_content" | "redeliveries_exceeded" | "redeliveries_error",
452
444
  listener: (err: Error, message: Message, ackOrNackFn: AckOrNack) => void,
453
445
  ): this;
454
446
  }
@@ -474,10 +466,10 @@ export class SubscriptionSession extends EventEmitter {
474
466
  isCancelled(): boolean;
475
467
  cancel(next: ErrorCb): void;
476
468
 
477
- on(event: 'message', listener: (message: Message, content: any, ackOrNackFn: AckOrNack) => void): this;
478
- on(event: 'error' | 'cancelled', listener: (err: Error) => void): this;
469
+ on(event: "message", listener: (message: Message, content: any, ackOrNackFn: AckOrNack) => void): this;
470
+ on(event: "error" | "cancelled", listener: (err: Error) => void): this;
479
471
  on(
480
- event: 'invalid_content' | 'redeliveries_exceeded' | 'redeliveries_error',
472
+ event: "invalid_content" | "redeliveries_exceeded" | "redeliveries_error",
481
473
  listener: (err: Error, message: Message, ackOrNackFn: AckOrNack) => void,
482
474
  ): this;
483
475
  }
@@ -523,9 +515,9 @@ export class PublicationSession extends EventEmitter {
523
515
  isAborted(): boolean;
524
516
  emitPaused(): void;
525
517
 
526
- on(event: 'error', cb: (err: Error, messageId: string) => void): this;
527
- on(event: 'success', cb: (messageId: string) => void): this;
528
- on(event: 'return', cb: (message: Message) => void): this;
518
+ on(event: "error", cb: (err: Error, messageId: string) => void): this;
519
+ on(event: "success", cb: (messageId: string) => void): this;
520
+ on(event: "return", cb: (message: Message) => void): this;
529
521
  }
530
522
 
531
523
  export class Vhost extends EventEmitter {
@@ -567,15 +559,15 @@ declare namespace counters {
567
559
  }
568
560
 
569
561
  export {
562
+ AckOrNack,
570
563
  Broker,
571
564
  BrokerAsPromised,
565
+ BrokerConfig,
566
+ counters,
572
567
  createBroker,
573
568
  createBrokerAsPromised,
574
569
  defaultConfig,
575
570
  testConfig,
576
571
  withDefaultConfig,
577
572
  withTestConfig,
578
- counters,
579
- BrokerConfig,
580
- AckOrNack,
581
573
  };
rascal/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "name": "@types/rascal",
3
- "version": "10.0.6",
3
+ "version": "10.0.8",
4
4
  "description": "TypeScript definitions for rascal",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rascal",
6
6
  "license": "MIT",
7
7
  "contributors": [
8
8
  {
9
9
  "name": "ethan",
10
- "url": "https://github.com/zijin-m",
11
- "githubUsername": "zijin-m"
10
+ "githubUsername": "zijin-m",
11
+ "url": "https://github.com/zijin-m"
12
12
  },
13
13
  {
14
14
  "name": "MartinTechy",
15
- "url": "https://github.com/MartinTechy",
16
- "githubUsername": "MartinTechy"
15
+ "githubUsername": "MartinTechy",
16
+ "url": "https://github.com/MartinTechy"
17
17
  },
18
18
  {
19
19
  "name": "Nikita Volodin",
20
- "url": "https://github.com/qlonik",
21
- "githubUsername": "qlonik"
20
+ "githubUsername": "qlonik",
21
+ "url": "https://github.com/qlonik"
22
22
  }
23
23
  ],
24
24
  "main": "",
@@ -33,6 +33,6 @@
33
33
  "@types/amqplib": "*",
34
34
  "@types/node": "*"
35
35
  },
36
- "typesPublisherContentHash": "39cff115e825f7e3bf21408fdd2f53e0170f5c752d9d18a3d1ecd84f370db5cc",
37
- "typeScriptVersion": "4.0"
36
+ "typesPublisherContentHash": "34f32470488a32030508178321e229be7d48dbba36dd6ddac3bebf1fd32a6180",
37
+ "typeScriptVersion": "4.5"
38
38
  }