TwitchClone / src / types / user.d.ts
user.d.ts
Raw
export declare type User = {
  id: string;
  username: string;
  email: string;
  // Add any other properties you need for the chat functionality
};

type UserSchema = {
  id: string;
  name?: string | null | undefined;
  email?: string | null | undefined;
  image?: string | null | undefined;
  followers?: {
    id: string;
    followingId: string;
    followerId: string;
    createdAt: Date;
  }[];
  following?: {
    id: string;
    followingId: string;
    followerId: string;
    createdAt: Date;
  }[];
  streamerInfo?: User & {
    videos: Content[];
    following: UserFollows[];
    followers: UserFollows[];
  };
};