How to export an interface in j=typescdript 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
}