📜  typescript 导出接口数组 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:35.306000             🧑  作者: Mango

代码示例1
interface Animal {  name: string;  size: "small";  medium;  large;}const animalsArray: Animal[] = [  { name: "chicken", size: "small" },  { name: "pig", size: "medium" },  { name: "cow", size: "large" },];