Variable getPermissionsForRoleConst
getPermissionsForRole: (
role: string,
userContext?: Record<string, any>,
) => Promise<
| { permissions: string[]; status: "OK" }
| { status: "UNKNOWN_ROLE_ERROR" },
> = Wrapper.getPermissionsForRole
Type declaration
- (
role: string,
userContext?: Record<string, any>,
): Promise<
| { permissions: string[]; status: "OK" }
| { status: "UNKNOWN_ROLE_ERROR" },
> Parameters
- role: string
Optional
userContext: Record<string, any>
Returns Promise<
| { permissions: string[]; status: "OK" }
| { status: "UNKNOWN_ROLE_ERROR" },
>