import { LabComment } from './lab-comment.type'; import { LabHtmlContent, LabHtmlPopulatedContent, LabJsonContent, LabTextContent } from './lab-content'; export type PopulatedUser = { id: string; username: string; email: string; avatar?: string; }; export type WithTimestamps = { createdAt?: string; updatedAt?: string; }; export type ContentReturnType = LabTextContent | LabJsonContent | LabHtmlContent | LabHtmlPopulatedContent; export type WithContent = { content?: ReturnType; }; export type WithViewable = { _viewedBy?: string[]; views?: number; viewedBy?: PopulatedUser[]; }; export type WithLikeable = { _likedBy?: string[]; likes?: number; likedBy?: PopulatedUser[]; }; export type WithComments = { comments?: LabComment[]; };