1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-16 00:06:40 +01:00
unleash.unleash/frontend/src/interfaces/role.ts
Christopher Kolstad 53354224fc
chore: Bump biome and configure husky (#6589)
Upgrades biome to 1.6.1, and updates husky pre-commit hook.

Most changes here are making type imports explicit.
2024-03-18 13:58:05 +01:00

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[];
}