TypeScript/tests/cases/compiler/typeAnnotationBestCommonTypeInArrayLiteral.ts
2014-07-12 17:30:19 -07:00

22 lines
429 B
TypeScript

interface IMenuItem {
id: string;
type: string;
link?: string;
classes?: string;
text?: string;
icon?: string;
}
var menuData: IMenuItem[] = [
{
"id": "ourLogo",
"type": "image",
"link": "",
"icon": "modules/menu/logo.svg"
}, {
"id": "productName",
"type": "default",
"link": "",
"text": "Product Name"
}
];