Skip to content

docs(*): repair API doc comments the API reference cannot read - #2307

Merged
kdinev merged 1 commit into
masterfrom
sstoychev/api-doc-comments
Nov 24, 2026
Merged

kdinev merged 1 commit into
masterfrom
sstoychev/api-doc-comments

Conversation

@ChronosSF

Copy link
Copy Markdown
Member

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code
  • This PR includes API docs for newly added methods/properties
  • This PR includes general feature table updates in the root README.MD
  • This PR contains breaking changes
  • This PR includes behavioral changes and the feature specification has been updated with them

What changed

The API reference is generated from the doc comments in the modules. Seven comments are not written as the comment grammar expects, so the reference shows their members without a type, a parameter or a return value, and prints the unread line as text. This repairs the comments. No code changes.

Member Was Now
ig.DataSource dataSummaries * returnType="object", with a stray * returnType="object"
ig.DataSchema schema.fields returnType="array" at the end of an option's comment type="array" at its start
ig.DataSchema schema.fields.formatter paramType="function" on an option type="function"
ig.TreeHierarchicalDataSource settings a comment with no type, which reads as the class description type="object", as mashupSettings of ig.MashupDataSource is written
ig.TreeHierarchicalDataSource getExpandStateById // before the paramType and returnType lines the lines without it
ig.TreeHierarchicalDataSource getPathBy returnType on the parameter's line a line of its own
igTree nodeByIndex paremType paramType

All in src/js/modules/infragistics.datasource.js, except the last, which is in src/js/modules/infragistics.ui.tree.js.

Verified

  • The code tokens of both files are identical before and after (tokenized with acorn, comments excluded), so only comments changed.
  • A parser of the comment grammar reads all seven members after the change and reports nothing for the two files: dataSummaries returns object, schema.fields is an array, formatter is a function, getPathBy and getExpandStateById have their parameter and return value, and nodeByIndex has its second, optional parameter.

Not run locally: the lint and the unit tests. Nothing they cover changes; CI runs them here.

No issue is logged for this.

🤖 Generated with Claude Code

The API reference is generated from the doc comments in the modules. Seven
comments were not written as the comment grammar expects, so their members
came out without a type, a parameter or a return value. Comments only; no
code changes.

- DataSource dataSummaries: a stray "*" before returnType.
- DataSchema schema.fields: returnType written for the option's type.
- DataSchema schema.fields.formatter: paramType written for the option's type.
- TreeHierarchicalDataSource settings: type="object", so the comment
  documents the settings object and not the class.
- TreeHierarchicalDataSource getExpandStateById: "//" before the paramType
  and returnType lines.
- TreeHierarchicalDataSource getPathBy: returnType on the parameter's line.
- igTree nodeByIndex: "paremType" for paramType.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 84.604% (-0.003%) from 84.607% — sstoychev/api-doc-comments into master

@kdinev
kdinev merged commit fe9ecfe into master Nov 24, 2026
5 of 7 checks passed
@kdinev
kdinev deleted the sstoychev/api-doc-comments branch November 24, 2026 13:04
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