TwitchClone / src / types / notifications.d.ts
notifications.d.ts
Raw
import { string } from "zod";

export declare type Notification = {
  id: string;
  title: string;
  date: string;
  read: boolean;
  description?: string;
  pic?: string;
  link?: string;
};

export declare type Follow = {
  id: number;
  name: string;
  pic: string;
  live: boolean;
  viewers?: number;
  category?: string;
};

export declare type Follow_ = {
  name: string;
  email: string;
  id: string;
  image: string;
};

export declare type Recommendation = {
  id: number;
  name: string;
  pic: string;
};

export declare type UserProfile = {
  name: string;
  email: string;
  password: string;
  notifications?: Notification[];
  messages: Message[];
  following?: Follow[];
};

export declare type Message = {
  id: string;
  sender: string;
  senderPic: string;
  receiver: string;
  date: string;
  read: boolean;
  message: string;
};