@ngx-security/roles
Version:
Angular Security Roles Module
16 lines (15 loc) • 660 B
TypeScript
import { ChangeDetectorRef, OnDestroy, PipeTransform } from '@angular/core';
import { SubjectRolesProvider } from '../subject-roles.provider';
import * as i0 from "@angular/core";
export declare class HasRolesPipe implements PipeTransform, OnDestroy {
private ref;
private subject;
private hasRoles;
private sub;
constructor(ref: ChangeDetectorRef, subject: SubjectRolesProvider);
transform(roles: string | string[], rolesAsArg: string[]): boolean;
ngOnDestroy(): void;
private clear;
static ɵfac: i0.ɵɵFactoryDeclaration<HasRolesPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<HasRolesPipe, "hasRoles", true>;
}