mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-13 11:17:26 +02:00
We're migrating to ESM, which will allow us to import the latest versions of our dependencies. Co-Authored-By: Christopher Kolstad <chriswk@getunleash.io>
19 lines
450 B
TypeScript
19 lines
450 B
TypeScript
import type { ROOT_ROLE_TYPE, PROJECT_ROLE_TYPE } from '@server/util/constants';
|
|
import type { IPermission } from './permissions.js';
|
|
|
|
export type PredefinedRoleType =
|
|
| typeof ROOT_ROLE_TYPE
|
|
| typeof PROJECT_ROLE_TYPE;
|
|
|
|
export interface IRole {
|
|
id: number;
|
|
name: string;
|
|
project: string | null;
|
|
description: string;
|
|
type: string;
|
|
}
|
|
|
|
export interface IRoleWithPermissions extends IRole {
|
|
permissions: IPermission[];
|
|
}
|