-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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: add TSDocs to the API Key Module #6785
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Ignored Deployments
|
created_at: Date | ||
|
||
/** | ||
* Who revoked the API key. |
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.
NIT: I think it's nice to specify what exactly this points to (eg. "the ID of the user that revoked the API key")
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 was thinking of that too, but also felt like it's somewhat limiting. i.e. if someone is using the module on their own, they can use something other than user ID such as email. However, it makes sense to add an example so I'll do that 👍🏻
|
||
/** | ||
* The type of the API key. It's only | ||
* usable and required when creating an API key. |
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.
Can we rephrase this to Required only when creating an API key
? I think the usable part is implied
Add TSDocs to the API Key Module's resources