Gustav Hansen fb3a0b8248
chore(admin): convert useAdminRoles to TS (#18336)
Co-authored-by: Josh Ellis <josh.ellis@strapi.io>
2023-10-09 16:41:12 +01:00

19 lines
396 B
TypeScript

import type { Entity as TEntity } from '@strapi/types';
export interface Entity {
id: TEntity.ID;
}
/**
* TODO: is there a way to infer this from the content-type schema?
* TODO: define content-type schema for a role.
*/
export interface RoleEntity extends Entity {
name: string;
code: string;
description?: string;
createdAt: string;
updatedAt: string;
usersCount?: number;
}