@ptc-org/nestjs-query-graphql
Version:
Nestjs graphql query adapter
6 lines (5 loc) • 530 B
TypeScript
import { Class, MetaValue } from '@ptc-org/nestjs-query-core';
import { Authorizer, AuthorizerOptions, CustomAuthorizer } from '../auth';
export declare function Authorize<DTO>(optsOrAuthorizerOrClass: Class<CustomAuthorizer<DTO>> | CustomAuthorizer<DTO> | AuthorizerOptions<DTO>): (DTOClass: Class<DTO>) => void;
export declare const getAuthorizer: <DTO>(DTOClass: Class<DTO>) => MetaValue<Class<Authorizer<DTO>>>;
export declare const getCustomAuthorizer: <DTO>(DTOClass: Class<DTO>) => MetaValue<Class<CustomAuthorizer<DTO>>>;