@types/rascal 10.0.9 → 10.2.0
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.
- rascal/README.md +1 -1
- rascal/index.d.ts +8 -0
- 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:
|
|
11
|
+
* Last updated: Fri, 27 Sep 2024 16:40:34 GMT
|
|
12
12
|
* Dependencies: [@types/amqplib](https://npmjs.com/package/@types/amqplib), [@types/node](https://npmjs.com/package/@types/node)
|
|
13
13
|
|
|
14
14
|
# Credits
|
rascal/index.d.ts
CHANGED
|
@@ -165,6 +165,11 @@ export interface Recovery {
|
|
|
165
165
|
immediateNack?: boolean | undefined;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
+
export interface ConnectionDetails {
|
|
169
|
+
vhost: string;
|
|
170
|
+
connectionUrl: string;
|
|
171
|
+
}
|
|
172
|
+
|
|
168
173
|
export interface SubscriptionConfig {
|
|
169
174
|
vhost?: string | undefined;
|
|
170
175
|
queue?: string | undefined;
|
|
@@ -459,6 +464,7 @@ declare class BrokerAsPromised extends EventEmitter {
|
|
|
459
464
|
unsubscribeAll(): Promise<void>;
|
|
460
465
|
subscribe(name: string, overrides?: SubscriptionConfig): Promise<SubscriberSessionAsPromised>;
|
|
461
466
|
subscribeAll(filter?: (config: SubscriptionConfig) => boolean): Promise<SubscriberSessionAsPromised[]>;
|
|
467
|
+
getConnections(): ConnectionDetails[];
|
|
462
468
|
}
|
|
463
469
|
|
|
464
470
|
export class SubscriptionSession extends EventEmitter {
|
|
@@ -507,6 +513,7 @@ declare class Broker extends EventEmitter {
|
|
|
507
513
|
subscribeAll(next: Cb<Error, SubscriptionSession[]>): void;
|
|
508
514
|
subscribeAll(filter: (config: SubscriptionConfig) => boolean, next: Cb<Error, SubscriptionSession[]>): void;
|
|
509
515
|
unsubscribeAll(next: ErrorCb): void;
|
|
516
|
+
getConnections(): ConnectionDetails[];
|
|
510
517
|
}
|
|
511
518
|
|
|
512
519
|
export class PublicationSession extends EventEmitter {
|
|
@@ -538,6 +545,7 @@ export class Vhost extends EventEmitter {
|
|
|
538
545
|
returnConfirmChannel(channel: Channel): void;
|
|
539
546
|
destroyConfirmChannel(channel: Channel): void;
|
|
540
547
|
isPaused(): boolean;
|
|
548
|
+
getConnectionDetails(): ConnectionDetails;
|
|
541
549
|
}
|
|
542
550
|
|
|
543
551
|
declare function createBroker(config: BrokerConfig, next: CreateCb): void;
|
rascal/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/rascal",
|
|
3
|
-
"version": "10.0
|
|
3
|
+
"version": "10.2.0",
|
|
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": "
|
|
37
|
-
"typeScriptVersion": "4.
|
|
36
|
+
"typesPublisherContentHash": "4785d6bd937284c8ed64582eaf4217464f0f7cf87ba661d38de94e7e94c698e8",
|
|
37
|
+
"typeScriptVersion": "4.8"
|
|
38
38
|
}
|