-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
v5 type issues #1686
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
Our team is migrating our typescript projects from 4.3.7 to 5.0.4 and we are hitting some problems that prevent us from upgrading.
We are facing three types of problems:
Error
orundefined
.Error | null
and some other callbacks' first argument is the more standarizedError | undefined
Some examples of each problem:
With the same code from point 2), we are able to get an untypeable pubPacket on runtime. That member is not declared in the callback type.
4. Error argument is not consistent:
null
orundefined
in the case of success.Of all these issues, the missing exported types (interfaces) are the ones that impact us the most as we have library function that return them for consumer usage and we are not able to achieve that because of the missing exports.
I believe it should be a lot of work to export the missing types (as they already there).
As for the mismatch between type declaration/runtime behavior I dare not to say as they probably come from other libraries,...
Long story short, we cannot move to mqttjs v5 until all types from public APIs are exported.
Thanks a lot for your great library.
The text was updated successfully, but these errors were encountered: