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
Contructor of class NatsJSContext receives a NatsConnection instead of INatsConnection:
publicpartialclassNatsJSContext{public NatsJSContext(NatsConnectionconnection) ...
public NatsJSContext(NatsConnectionconnection,NatsJSOptsopts) ...}
Expected behavior
Given that the team decided to use interface + class pairs for most of the concepts, I would expect that there were no parameters and return types declared with the class type, but most importantly, that there were consistency among the declarations.
Observed behavior
To use just two instances as examples:
At class
NatsJSContext
, methodsCreateStreamAsync
andUpdateStreamAsync
return different types:Contructor of class
NatsJSContext
receives aNatsConnection
instead ofINatsConnection
:Expected behavior
Given that the team decided to use
interface + class
pairs for most of the concepts, I would expect that there were no parameters and return types declared with the class type, but most importantly, that there were consistency among the declarations.Server and client version
Client Versions:
Server Version: irrelevant
Host environment
No response
Steps to reproduce
No response
The text was updated successfully, but these errors were encountered: