router icon indicating copy to clipboard operation
router copied to clipboard

refactor: jsdoc and docs for RouteOptions

Open KirillTregubov opened this issue 7 months ago • 2 comments

This is a draft based on this conversation.

Currently only implements jsdocs for RouteOptionsType, which is used in the createRoute function.

Any feedback / review is highly appreciated! Feel free to leave some anytime.

KirillTregubov avatar Jun 05 '25 01:06 KirillTregubov

ideally we can eventually generate the docs from the code. @crutchcorn which format should we adhere to in the code to make this work?

schiller-manuel avatar Jun 05 '25 20:06 schiller-manuel

ideally we can eventually generate the docs from the code. @crutchcorn which format should we adhere to in the code to make this work?

I tried to keep all the jsdocs as similar to the current docs website content as possible. I may have shortened some of them because they had multiple paragraphs of description, but if this is the route you want to take, I can amend those few instances to include everything.

It would be ideal if you can settle on a format that works best. We can test it with RouteOptions, and then I will implement it for the other APIs.

KirillTregubov avatar Jun 06 '25 05:06 KirillTregubov