UNPKG

zents

Version:

ZenTS is a Node.js & TypeScript MVC-Framework for building rich web applications, released as free and open-source software under the MIT License. It is designed for building web applications with modern tools and design patterns.

15 lines (14 loc) 682 B
import type { Connection } from 'typeorm'; import type { RequestConfigSecurity } from '../../types/interfaces'; import { SECURITY_ACTION } from '../../types/enums'; import type { SecurityProvider } from '../../security/SecurityProvider'; import type { SecurityRequestContext } from '../../types/types'; export declare class SecurityRequestHandler { protected context: SecurityRequestContext; protected connection: Connection; protected provider: SecurityProvider; protected action: SECURITY_ACTION; private didRun; constructor(context: SecurityRequestContext, connection: Connection, { action, provider }: RequestConfigSecurity); run(): Promise<void>; }