mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-16 00:06:40 +01:00
53354224fc
Upgrades biome to 1.6.1, and updates husky pre-commit hook. Most changes here are making type imports explicit.
19 lines
447 B
TypeScript
19 lines
447 B
TypeScript
import type { ROOT_ROLE_TYPE, PROJECT_ROLE_TYPE } from '@server/util/constants';
|
|
import type { IPermission } from './permissions';
|
|
|
|
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[];
|
|
}
|