使用类型别名自定义类型, type Feature = { id: number; name: string;};const features: Feature[] = [ { id: 1, name: "foo" }, { id: 2, name: "bar" },];