Skip to content

chore: Enabled tsdoc error checking #1459

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

Merged
merged 5 commits into from
Oct 14, 2021
Merged

chore: Enabled tsdoc error checking #1459

merged 5 commits into from
Oct 14, 2021

Conversation

hiranya911
Copy link
Contributor

@hiranya911 hiranya911 commented Oct 13, 2021

  • Enabled TSDoc error checking in API Extractor, so any bad syntax would raise errors.
  • Fixed all errors and warnings reported by API Extractor.

Diff on the generated docs: 438aa88

hiranya911 added a commit that referenced this pull request Oct 13, 2021
Copy link
Contributor

@egilmorez egilmorez left a comment

Choose a reason for hiding this comment

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

I didn't exactly review every line, but here are couple questions/nits. Thanks!

@@ -53,8 +53,8 @@ export class AppCheckApiClient {
/**
* Exchange a signed custom token to App Check token
*
* @param customToken The custom token to be exchanged.
* @param appId The mobile App ID.
* @param customToken - The custom token to be exchanged.
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these single dashes, double dashes, or an "em dash?"

Curious if this is our choice our a Rushstack standard.

Copy link
Member

Choose a reason for hiding this comment

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

I am also curious about the dashes. Are we okay with parameters appearing with a dash in the docs?

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 is the TSDoc syntax. See examples in https://tsdoc.org/

It's a single dash, and you will get an error if you don't include it. They also do not appear in the generated markdown, as API Extractor renders parameters in tables. For example: https://github.com/firebase/firebase-admin-node/blob/modular-sdk-docs/docgen/markdown/firebase-admin.app-check.appcheck.md

Copy link
Member

@lahirumaramba lahirumaramba left a comment

Choose a reason for hiding this comment

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

LGTM. Left a few comments. Thanks!

Copy link
Contributor

@egilmorez egilmorez left a comment

Choose a reason for hiding this comment

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

One nit on the phrasing in FirebaseError, otherwise LG, thanks!

@hiranya911 hiranya911 merged commit 94dd7c3 into master Oct 14, 2021
@hiranya911 hiranya911 deleted the hkj-tsdoc-fixes branch October 14, 2021 17:20
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