diff --git a/packages/pubsub/src/PublisherFactory.ts b/packages/pubsub/src/PublisherFactory.ts index 78d019b..7a66704 100644 --- a/packages/pubsub/src/PublisherFactory.ts +++ b/packages/pubsub/src/PublisherFactory.ts @@ -5,7 +5,7 @@ import { Publisher } from './Publisher' export interface IPublisher { topicName: string initialize: () => Promise - publishMsg: (data: T, attributes: Record) => Promise + publishMsg: (data: T, attributes?: Record) => Promise flush: () => Promise }