UNPKG

@rbac/rbac

Version:

Blazing Fast, Zero dependency, Hierarchical Role-Based Access Control for Node.js

13 lines (12 loc) 374 B
export type NestExecutionContext = { switchToHttp(): { getRequest(): Record<string, unknown>; getResponse(): Record<string, unknown>; getNext(): (err?: unknown) => void; }; }; export type NestNextFunction = (err?: unknown) => void; export type NestResponse = { status: (code: number) => any; send: (data: string | object) => void; };