You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
Please refer to the following format when writing function docstrings:
/** * [description] * * @param [parameter name] - [Description of the parameter] */exportfunctiondemoFunction(){}
Components
The docstring goes above the function
It has a brief description of what the function does
All parameters are mentioned and detailed accordingly
Example
/** * Handles the POST request for user login, validating the user credentials against the database. * Responds with a success message and status code 200 if the credentials are valid, or an error * message and status code 401 for invalid credentials, and 500 for any internal server errors. * * @param req - The incoming Next.js API request object, containing the username and password. * @param res - The outgoing Next.js API response object used to send back the result. */exportdefaultasyncfunctionhandler(req: NextApiRequest,res: NextApiResponse){}
The text was updated successfully, but these errors were encountered:
Please refer to the following format when writing function docstrings:
Components
Example
The text was updated successfully, but these errors were encountered: