mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-26 16:00:56 -04:00
feat: require JSDoc in new api (#50429)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@@ -3,6 +3,13 @@ import type { NextFunction, NextHandleFunction } from '@fastify/middie';
|
||||
type MiddieRequest = Parameters<NextHandleFunction>[0];
|
||||
type MiddieResponse = Parameters<NextHandleFunction>[1];
|
||||
|
||||
/**
|
||||
* Test middleware used to log request and response data?
|
||||
*
|
||||
* @param req The request payload.
|
||||
* @param res The response to be sent back to the request.
|
||||
* @param next Callback function to indicate that the middleware logic is complete.
|
||||
*/
|
||||
export function testMiddleware(
|
||||
req: MiddieRequest,
|
||||
res: MiddieResponse,
|
||||
|
||||
Reference in New Issue
Block a user