-
Notifications
You must be signed in to change notification settings - Fork 51
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
Conversation
fbe43d8
to
b6b41c8
Compare
@@ -505,7 +505,7 @@ export class NatsConnectionImpl implements NatsConnection { | |||
} | |||
|
|||
jetstream( | |||
opts: JetStreamOptions = {}, | |||
opts: JetStreamOptions | JetStreamManagerImpl = {}, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@ramonberrutti thank you! |
Extend jetstream options with jetstreamManager options