cesarParra / apexdocs

Node.js tool to generate documentation for your Salesforce Apex Classes.
https://www.npmjs.com/package/@cparra/apexdocs
MIT License
101 stars 18 forks source link

Specify full list/set/map type in method return type #94

Closed pozil closed 9 months ago

pozil commented 9 months ago

I saw that the latest version of apexdocs adds return types to method signatures and it would be nice if the lists/sets/maps were "fully" typed.

Screenshot 2023-10-04 at 16 58 40

For example, the return type in this specific example should be List<Account> instead of just List.

codefriar commented 9 months ago

@pozil - check out the --sanitizeHtml option.

pozil commented 9 months ago

Thanks @codefriar but I don't think that this the issue. This line is automatically generated from the method signature. The return type was not specified in the previous apexdocs version, it's a new feature from v2.17.0.

cesarParra commented 9 months ago

Yeah, that's definitely a gap with generic types. Let me look into it.

cesarParra commented 9 months ago

Addressed in v2.17.1 https://www.npmjs.com/package/@cparra/apexdocs/v/2.17.1

pozil commented 9 months ago

Wow, thanks again for the ultra fast fix :)