-
Notifications
You must be signed in to change notification settings - Fork 390
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
Conversation
There was a problem hiding this 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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this 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!
There was a problem hiding this 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!
Diff on the generated docs: 438aa88