Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
87 lines (54 sloc) 2.03 KB

Table of contents

index.ts

Functions

PermissionRequired

function PermissionRequired(perm: string, options: { redirect?: string | undefined; } = {}): HookDecorator;

Parameters

Name Type Default value
perm string
options { redirect?: string | undefined; } {}

Return type

HookDecorator


fetchUserWithPermissions

function fetchUserWithPermissions(userEntityClass: Class<{ id: number | string; }>): (id: number | string) => Promise<any>;

Parameters

Name Type
userEntityClass Class<{ id: number | string; }>

Return type

(id: number | string) => Promise


fetchUser

function fetchUser(userEntityClass: Class<{ id: number | string; }>): (id: number | string) => Promise<any>;

Parameters

Name Type
userEntityClass Class<{ id: number | string; }>

Return type

(id: number | string) => Promise

Classes

UserWithPermissions


Group


Permission