Skip to content

Add script to check that the tsdoc is correct and up-to-date#3644

Merged
BillCarsonFr merged 2 commits intolivekitfrom
valere/devx_check_doc
Jan 5, 2026
Merged

Add script to check that the tsdoc is correct and up-to-date#3644
BillCarsonFr merged 2 commits intolivekitfrom
valere/devx_check_doc

Conversation

@BillCarsonFr
Copy link
Copy Markdown
Member

I noticed that some docs were out-dated, so adding some script to add some basic checks.
It will not force to add docs on all methods for now, but it will check for missing or dead params for example

Copy link
Copy Markdown
Member

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a good change, modulo script command?

Comment on lines +141 to +150
* @param props The properties required to create the local membership.
* @param props.scope The observable scope to use.
* @param props.connectionManager The connection manager to get connections from.
* @param props.createPublisherFactory Factory to create a publisher once we have a connection.
* @param props.joinMatrixRTC Callback to join the matrix RTC session once we have a transport.
* @param props.homeserverConnected The homeserver connected state.
* @param props.localTransport$ The local transport to use for publishing.
* @param props.logger The logger to use.
* @param props.muteStates The mute states for video and audio.
* @param props.matrixRTCSession The matrix RTC session to join.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For what it's worth I think we should stick to putting these kinds of comments in the interface definition rather than on the function, generally. It's a little easier to pull up the docs for each property while writing a function call that way.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it feels a bit strange to me also, but I am not familiar with js doc.
It looks like lint requires them because we are doing destructuring/unpacking of the arguments in the signature.

@BillCarsonFr BillCarsonFr merged commit 49cd980 into livekit Jan 5, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants