-
Notifications
You must be signed in to change notification settings - Fork 28
Add type generation from jsdoc #64
Add type generation from jsdoc #64
Conversation
cc @vasco-santos is this proper way to include types? |
@mpetrunic The goal is to not have the @hugomrdias do you have any visibility on when you will be able to go back to the aegir support? |
If we do not have support soon for |
no i don't, it will take a while probably |
@vasco-santos @wemeetagain @tuyennhv |
👍 the types there are meant to be temporary until these types (and js-libp2p core) types are available. Happy to slowly get rid of these libp2p types duplicated everywhere 😂 |
Yeah, that should be because we require specific interfaces @mpetrunic should I review the PR or should we wait on gossipsub integration before? |
@Gozala has taken over the ts jsdocs aegir PRs and is making good progress. Maybe that helps here. |
@vasco-santos I'm still getting types inline with gossipsub and removing duplicates, so pls wait a bit more before reviewing.
@hugomrdias We can switch over once it's ready, I'm mostly changing jsdoc to describe types more accurately. |
Confirm that gossipsub works fine with this PR 👍 |
@vasco-santos we are ready for review :) |
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.
Overall this looks good to me. Just minor stuff below
I think this is ready for re-review |
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! 🎉
FYI Shipped |
Related to: libp2p/js-libp2p#659
I've fixed some jsdocs to generate better types. There is also some issue with index modules but overall jsdoc seems to be
generating quite good types. A lot of stuff related to protons library is "any" since that library doesn't have types. Not sure from where to import/use all those stream/duplex/DuplexIterable types
Do we wan't some precommit hook to regenerate types?
cc @wemeetagain @tuyennhv you can try from this branch directly