From c37e0fd5ee8864597241623e19ec495b5b99d5c3 Mon Sep 17 00:00:00 2001 From: Megan Potter <57276408+feywind@users.noreply.github.com> Date: Wed, 18 Aug 2021 16:14:24 -0400 Subject: [PATCH] fix: export publish and subscribe options (#1371) Fixes https://github.com/googleapis/nodejs-pubsub/issues/1227 Some of the options objects that are passed down deep don't have all of the types exposed, so users of TypeScript can't set them gracefully. --- src/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 585bfb99b..6b26c57fc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -90,7 +90,8 @@ export { TestIamPermissionsCallback, IAM, } from './iam'; -export {Attributes, PublishCallback} from './publisher'; +export {Attributes, PublishCallback, PublishOptions} from './publisher'; +export {BatchPublishOptions} from './publisher/message-batch'; export {PublishError} from './publisher/publish-error'; export { PageOptions, @@ -114,7 +115,7 @@ export { SeekResponse, Snapshot, } from './snapshot'; -export {Message} from './subscriber'; +export {Message, SubscriberOptions} from './subscriber'; export { Schema, CreateSchemaResponse,