UNPKG
ts-access-control
Version:
latest (0.1.20)
0.1.20
0.1.19
0.1.18
0.1.1
0.0.1
Role Based Access Control
nicolaspearson/ts-access-control
ts-access-control
/
lib
/
src
/
permission
/
Permission.d.ts
10 lines
(9 loc)
•
259 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
IQueryInfo
}
from
'../interfaces'
;
export
declare
class
Permission
{
private
_;
constructor
(
grants
:
any
,
query
:
IQueryInfo
);
get
roles
():
string
[];
get
resource
():
string
;
get
attributes
():
string
[];
get
granted
():
boolean
; }