jsdoc-tsd icon indicating copy to clipboard operation
jsdoc-tsd copied to clipboard

Sorting support

Open whitlockjc opened this issue 5 years ago • 2 comments

It would be really nice to have some way to dictate how things are sorted in the generated .d.ts, even if only for the class/interface members.

whitlockjc avatar May 17 '19 16:05 whitlockjc

Hmm .. The input is just a taffy DB from jsdoc. For the extension the order should not matter. The only important thing is that the parent members are parsed before the child members, otherwise they can't be mapped together. I don't know a quick solution without spending too much effort.

Can I ask you for what purpose you wan't to sort the .d.ts?

wehrstedt avatar May 20 '19 06:05 wehrstedt

It's common convention (or at least preference for some), and sometimes enforced, that sources be sorted. I would like it to be sorted alphabetically, instead of order of definition (sub-classing causes issues here), but it's not something I must have. I was just inquiring about it.

whitlockjc avatar May 21 '19 15:05 whitlockjc