NewsEvents.ts 297 B

123456789101112131415
  1. import { NewsModel } from "../models/News";
  2. type BaseNewsEventsResponse = {
  3. data: {
  4. news: NewsModel;
  5. };
  6. };
  7. export type NewsCreatedResponse = BaseNewsEventsResponse;
  8. export type NewsUpdatedResponse = BaseNewsEventsResponse;
  9. export type NewsRemovedResponse = {
  10. data: {
  11. newsId: string
  12. }
  13. };