This interface describes my answers array (IActivityAnswer[]).
export interface IActivityAnswer {
createdAt: string;
id: string;
questionId: string;
score: number;
summary: string;
title: string;
commentCount?: number;
}
Some users won't have any answers (so they will have an empty array). How do I define a type for empty array. I want to accomplish this without using type any.