You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Readme mentions the other options from the nsqjs Reader/Writer being available in the second argument of the Producer constructor.
However, the actual typescript type does not reflect this, which leads to a type error if you try to provide more options. This could probably be solved most easily by exporting a type intersected with the nsqjs ConnectionConfigOptions type.
The only downside would be adding @types/nsqjs as a (dev?) dependency to this library. Alternatively, the option definintion could be duplicated, but that seems less than ideal.
The text was updated successfully, but these errors were encountered:
The Readme mentions the other options from the nsqjs Reader/Writer being available in the second argument of the
Producer
constructor.However, the actual typescript type does not reflect this, which leads to a type error if you try to provide more options. This could probably be solved most easily by exporting a type intersected with the nsqjs
ConnectionConfigOptions
type.The only downside would be adding
@types/nsqjs
as a (dev?) dependency to this library. Alternatively, the option definintion could be duplicated, but that seems less than ideal.The text was updated successfully, but these errors were encountered: