Skip to content

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

Open
Ayoub-Mabrouk wants to merge 1 commit intojshttp:masterfrom
Ayoub-Mabrouk:chore/auth-jsDocs
Open

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

Conversation

@Ayoub-Mabrouk
Copy link

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.
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.

1 participant