Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jetstream also support jsm options #666

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

ramonberrutti
Copy link
Contributor

Extend jetstream options with jetstreamManager options

@@ -505,7 +505,7 @@ export class NatsConnectionImpl implements NatsConnection {
}

jetstream(
opts: JetStreamOptions = {},
opts: JetStreamOptions | JetStreamManagerImpl = {},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn't look right - JetstreamManagerImpl?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right

@@ -651,7 +651,7 @@ export interface NatsConnection {
*
* @param opts
*/
jetstream(opts?: JetStreamOptions): JetStreamClient;
jetstream(opts?: JetStreamOptions | JetStreamManagerOptions): JetStreamClient;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be JetStreamOptions & JetstreamManagerOptions - this would allow all options be be specified.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doh - the current type for JetStreamManagerOptions extends JetStreamOptions, so this is a good change.

@aricart aricart self-requested a review March 26, 2024 14:41
Copy link
Member

@aricart aricart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aricart
Copy link
Member

aricart commented Mar 26, 2024

@ramonberrutti thank you!

@aricart aricart merged commit 109f77a into nats-io:main Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants