interface Topic {
    created_at: Date;
    deleted_at: null | Date;
    first_post_id: number;
    forum_id: number;
    id: number;
    is_locked: boolean;
    last_post_id: number;
    poll: null | {
        allow_vote_change: boolean;
        ended_at: null | Date;
        hide_incomplete_results: boolean;
        last_vote_at: null | Date;
        max_votes: number;
        options: {
            id: number;
            text: {
                bbcode: string;
                html: string;
            };
            vote_count?: number;
        }[];
        started_at: Date;
        title: {
            bbcode: string;
            html: string;
        };
        total_vote_count: number;
    };
    post_count: number;
    title: string;
    type: "normal" | "sticky" | "announcement";
    updated_at: Date;
    user_id: number;
}

Properties

created_at: Date
deleted_at: null | Date
first_post_id: number
forum_id: number
id: number
is_locked: boolean
last_post_id: number
poll: null | {
    allow_vote_change: boolean;
    ended_at: null | Date;
    hide_incomplete_results: boolean;
    last_vote_at: null | Date;
    max_votes: number;
    options: {
        id: number;
        text: {
            bbcode: string;
            html: string;
        };
        vote_count?: number;
    }[];
    started_at: Date;
    title: {
        bbcode: string;
        html: string;
    };
    total_vote_count: number;
}

Type declaration

  • allow_vote_change: boolean
  • ended_at: null | Date

    Can be in the future

  • hide_incomplete_results: boolean
  • last_vote_at: null | Date
  • max_votes: number
  • options: {
        id: number;
        text: {
            bbcode: string;
            html: string;
        };
        vote_count?: number;
    }[]
  • started_at: Date
  • title: {
        bbcode: string;
        html: string;
    }
    • bbcode: string
    • html: string
  • total_vote_count: number
post_count: number
title: string
type: "normal" | "sticky" | "announcement"
updated_at: Date
user_id: number