NewsActions.ts 366 B

12345678910111213141516
  1. import { GenericResponse } from "./GenericActions";
  2. import { NewsModel } from "../models/News";
  3. type BaseNewsResponse = GenericResponse & {
  4. data: {
  5. news: NewsModel;
  6. };
  7. };
  8. export type NewestResponse = BaseNewsResponse;
  9. export type GetNewsResponse = BaseNewsResponse;
  10. export type GetPublishedNewsResponse = GenericResponse & {
  11. data: {
  12. news: NewsModel[]
  13. }
  14. };