UNPKG
koa-accesscontrol
Version:
latest (1.0.0)
1.0.0
Accesss control middleware for koa
github.com/cernicc/koa-accesscontrol
cernicc/koa-accesscontrol
koa-accesscontrol
/
lib
/
authorization.d.ts
6 lines
(5 loc)
•
283 B
TypeScript
View Raw
1
2
3
4
5
6
/// <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
, };