Variable default

default: {
    xssShield: ((options?: SanitizeOptions) => ((req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, _res: Response<any, Record<string, any>>, next: NextFunction) => void));
}

Type declaration

  • xssShield: ((options?: SanitizeOptions) => ((req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, _res: Response<any, Record<string, any>>, next: NextFunction) => void))
      • (options?: SanitizeOptions): ((req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, _res: Response<any, Record<string, any>>, next: NextFunction) => void)
      • Sanitizes user input from potential cross-site scripting (XSS) attacks.

        Parameters

        • Optional options: SanitizeOptions

          Optional configuration options to customize the sanitization process.

        Returns ((req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, _res: Response<any, Record<string, any>>, next: NextFunction) => void)

          • (req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, _res: Response<any, Record<string, any>>, next: NextFunction): void
          • Parameters

            • req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
            • _res: Response<any, Record<string, any>>
            • next: NextFunction

            Returns void

Generated using TypeDoc