Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix invalid tsdoc tags in comments #2836

Merged
merged 1 commit into from
May 6, 2019
Merged

Conversation

raymondfeng
Copy link
Contributor

@raymondfeng raymondfeng commented May 5, 2019

Invalid block tags prevent api-documenter from generating apidocs.

Relates to #2834

Checklist

👉 Read and sign the CLA (Contributor License Agreement) 👈

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

👉 Check out how to submit a PR 👈

- Invalid block tags prevent api-documenter from generating apidocs
@raymondfeng raymondfeng requested a review from bajtos as a code owner May 5, 2019 18:15
@raymondfeng raymondfeng merged commit 114a70e into master May 6, 2019
@raymondfeng raymondfeng deleted the fix-tsdoc-tags branch May 6, 2019 22:05
Copy link
Member

@bajtos bajtos left a comment

Choose a reason for hiding this comment

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

@raymondfeng PTAL 👇

* - projectRoot: Root of project. All other artifacts are resolved relative to this
* - booters: An array of booters to bind to the application before running bootstrapper
* - filter.booters: An array of booters that should be run by the bootstrapper
* - filter.phases: An array of phases that should be run
Copy link
Member

Choose a reason for hiding this comment

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

This documentation does not match the described interface.

I believe booters and filters properties were moved from BootOptions to BootExecutionOptions; and projectRoot was moved to Bootable interface.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This can be fixed in a follow-up PR. The original doc follows js style. For TS, such properties should be documented directly at BootExecutionOptions and Bootable level.

* - extensions: File extensions to look for to match an artifact (this is a convention based booter)
* - glob: Glob pattern to use to discover artifacts. Takes precedence over (dirs + extensions)
* - discovered: List of files discovered by the Booter that matched artifact requirements
* - classes: List of exported classes discovered in the files
Copy link
Member

Choose a reason for hiding this comment

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

Describing properties in class documentation is weird. Can you move the documentation of individual properties to property-level tsdoc comments please?

@@ -10,7 +10,7 @@ import {SchemaObject} from '@loopback/openapi-v3-types';
* parameter's type.
* `type` and `format` will be preserved if provided in `schema`
*
* @private
* @internal
Copy link
Member

Choose a reason for hiding this comment

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

Does strong-docs recognize @internal annotation? If not, then I think this change is going to break API docs that we are generating right now :(

@@ -14,10 +14,10 @@ import {Class} from './common-types';
* the actual reference to the class itself until later, when both sides
* of the relation are created as JavaScript classes.
*
* @template Type The type we are resolving, for example `Entity` or `Product`.
* @typeparam Type The type we are resolving, for example `Entity` or `Product`.
Copy link
Member

Choose a reason for hiding this comment

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

Does strong-docs recognize @typeparam annotation? If not, then I think this change is going to break API docs that we are generating right now :(

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@raymondfeng
Copy link
Contributor Author

To be assured, npm run apidocs on master is successful.

@raymondfeng raymondfeng mentioned this pull request May 7, 2019
7 tasks
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