Check out example codes for "typescript export interface array". It will help you in understanding the concepts better.
Code Example 1
interface Animal { name: string; size: "small"; medium; large;}const animalsArray: Animal[] = [ { name: "chicken", size: "small" }, { name: "pig", size: "medium" }, { name: "cow", size: "large" },];
Learn ReactJs, React Native from akashmittal.com