Skip to content

Commit 362f850

Browse files
Switch Boolean type to boolean
Signed-off-by: Xavier Geerinck <[email protected]>
1 parent b3099f0 commit 362f850

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/implementation/Client/GRPCClient/pubsub.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default class GRPCClientPubSub implements IClientPubSub {
1111
}
1212

1313
// @todo: should return a specific typed Promise<TypePubSubPublishResponse> instead of Promise<any>
14-
async publish(pubSubName: string, topic: string, data: object = {}): Promise<Boolean> {
14+
async publish(pubSubName: string, topic: string, data: object = {}): Promise<boolean> {
1515
const msgService = new PublishEventRequest();
1616
msgService.setPubsubName(pubSubName);
1717
msgService.setTopic(topic);

src/implementation/Client/HTTPClient/pubsub.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default class HTTPClientPubSub implements IClientPubSub {
99
this.client = client;
1010
}
1111

12-
async publish(pubSubName: string, topic: string, data: object = {}): Promise<Boolean> {
12+
async publish(pubSubName: string, topic: string, data: object = {}): Promise<boolean> {
1313
try {
1414
await this.client.execute(`/publish/${pubSubName}/${topic}`, {
1515
method: 'POST',
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export default interface IClientPubSub {
2-
publish(pubSubName: string, topic: string, data?: object): Promise<Boolean>
2+
publish(pubSubName: string, topic: string, data?: object): Promise<boolean>
33
}

0 commit comments

Comments
 (0)