📅  最后修改于: 2022-03-11 14:48:35.306000             🧑  作者: Mango
interface Animal { name: string; size: "small"; medium; large;}const animalsArray: Animal[] = [ { name: "chicken", size: "small" }, { name: "pig", size: "medium" }, { name: "cow", size: "large" },];