UNPKG

koa-accesscontrol

Version:
6 lines (5 loc) 283 B
/// <reference types="koa-router" /> import * as Koa from 'koa'; import { Options } from './interfaces'; declare function Authorization(grants: any, roleLocation: string): (options: Options) => (ctx: Koa.Context, next: () => Promise<any>) => Promise<any>; export { Authorization, };