UNPKG

@ptc-org/nestjs-query-graphql

Version:
8 lines (7 loc) 313 B
import { NestInterceptor } from '@nestjs/common'; import { Class } from '@ptc-org/nestjs-query-core'; import { Authorizer } from '../auth'; export type AuthorizerContext<DTO> = { authorizer: Authorizer<DTO>; }; export declare function AuthorizerInterceptor<DTO>(DTOClass: Class<DTO>): Class<NestInterceptor>;