19 lines
396 B
TypeScript
Raw Normal View History

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