Frontend for Miracle TV
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
306 B

  1. interface IResourceEntitiesMap<T> {
  2. [index: string]: T,
  3. }
  4. interface IResourceError {
  5. status: number;
  6. message?: string;
  7. meta?: { [key: string]: any };
  8. };
  9. export interface IResource<T> {
  10. ids: string[];
  11. errors: IResourceError[],
  12. entities: IResourceEntitiesMap<T>;
  13. }
  14. export default IResource;