Skip to content

Commit a953413

Browse files
authored
fix: fix types on publishAndWaitForReply (#227)
1 parent 476be6e commit a953413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/event_hub.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ export class EventHub {
317317
*/
318318
publishAndWaitForReply(
319319
event: Event,
320-
{ timeout = 30 }: { timeout: number },
320+
{ timeout = 30 }: { timeout?: number } = {},
321321
): Promise<unknown> {
322322
const eventId = event.getData().id;
323323
const response = new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)