'='仅可用于解构分配内的对象文字属性,并且类型'{{id:any; }”,但在“ Envt”类型中为必填项。 [2741]
export class Envt
{
id: string;
name: string;
}
const id: string;
envt: Envt[] = [
{ id: 'aws-124es35fse', name: 'RPA Prototyping Serve'},
{ id: 'azure123', name: 'Creative Sandbox'},
{ id: 'aws12345', name: 'Client Prototype Host'}
];