@adonisjs/shield
Version:
A middleware for AdonisJS to keep web applications secure from common web attacks
13 lines (12 loc) • 370 B
TypeScript
import type { HttpContext } from '@adonisjs/core/http';
/**
* A no-operation function that does nothing with the provided HTTP context.
* Used as a placeholder when a guard is disabled.
*
* @param _ - The HTTP context (unused)
*
* @example
* const guard = options.enabled ? actualGuard : noop
* guard(ctx)
*/
export declare function noop(_: HttpContext): void;