UNPKG

type-graphql

Version:

Create GraphQL schema and resolvers with TypeScript, using classes and decorators!

5 lines (4 loc) 341 B
import { type AuthChecker, type AuthMode } from "../typings/index.js"; import { type MiddlewareFn } from "../typings/middleware.js"; import { type IOCContainer } from "../utils/container.js"; export declare function AuthMiddleware(authChecker: AuthChecker<any, any>, container: IOCContainer, authMode: AuthMode, roles: any[]): MiddlewareFn;