Skip to content

Refactor JSDoc for auth function: Clarify return type and document errors - #62

Closed
Ayoub-Mabrouk wants to merge 1 commit into
jshttp:masterfrom
Ayoub-Mabrouk:chore/auth-jsDocs
Closed

Refactor JSDoc for auth function: Clarify return type and document errors#62
Ayoub-Mabrouk wants to merge 1 commit into
jshttp:masterfrom
Ayoub-Mabrouk:chore/auth-jsDocs

Conversation

@Ayoub-Mabrouk

Copy link
Copy Markdown

Refactor JSDoc for auth function: Clarify return type and documented errors

  • Refined the return type in JSDoc to (Credentials|undefined) to match the actual return value.
  • Added @throws {TypeError} in JSDoc to document errors thrown for invalid req parameter.

…errors in JSDoc

- Refined the return type in JSDoc to `(Credentials|undefined)` to match the actual return value.
- Added `@throws {TypeError}` in JSDoc to document errors thrown for invalid `req` parameter.
@blakeembrey

Copy link
Copy Markdown
Member

I'm going to close this out as we're moving to TypeScript types in the next major, and it's unlikely to be released in the previous major.

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.

2 participants