UNPKG

@enonic/mock-xp

Version:

Mock Enonic XP API JavaScript Library

19 lines (18 loc) 678 B
import type { PrincipalKey } from '@enonic-types/lib-auth'; export interface PrincipalInterface { displayName: string; key: PrincipalKey; type: 'group' | 'role' | 'user'; modifiedTime?: string; } export declare class Principal implements PrincipalInterface { readonly displayName: PrincipalInterface['displayName']; readonly key: PrincipalInterface['key']; readonly type: PrincipalInterface['type']; modifiedTime?: PrincipalInterface['modifiedTime']; constructor({ displayName, key, type, }: { displayName: PrincipalInterface['displayName']; key: PrincipalInterface['key']; type: PrincipalInterface['type']; }); }