typescript interface export array code example
Example 1: typescript export interface array
interface Animal { name: string; size: "small"; medium; large;}const animalsArray: Animal[] = [ { name: "chicken", size: "small" }, { name: "pig", size: "medium" }, { name: "cow", size: "large" },];
Example 2: export interface typescript
interface Props {}
export interface IRefered {
name: string
}