-
Notifications
You must be signed in to change notification settings - Fork 62
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
feat: convert to typescript #777
Conversation
Converts this module to typescript
apiAddr: nodes[id].apiAddr?.toString(), | ||
gatewayAddr: nodes[id].gatewayAddr?.toString(), | ||
grpcAddr: nodes[id].grpcAddr?.toString(), |
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.
we're changing the results from being ''
(empty string) when undefined, to being undefined
. Is this okay?
apiAddr: nodes[id].apiAddr?.toString(), | ||
gatewayAddr: nodes[id].gatewayAddr?.toString(), | ||
grpcAddr: nodes[id].grpcAddr?.toString() |
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.
we're changing the results from being ''
(empty string) when undefined, to being undefined
. Is this okay?
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.
Yes, I think it's a bit better like as these fields will be stripped out on JSON encode now as they're undefined instead of being an empty string which is not a valid string representation of a multiaddr.
## [12.1.0](v12.0.3...v12.1.0) (2022-10-04) ### Features * convert to typescript ([#777](#777)) ([ee3a35a](ee3a35a))
🎉 This PR is included in version 12.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Converts this module to typescript