2014-07-13 01:04:16 +02:00
|
|
|
//// [typeAnnotationBestCommonTypeInArrayLiteral.ts]
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
//// [typeAnnotationBestCommonTypeInArrayLiteral.js]
|
|
|
|
var menuData = [
|
|
|
|
{
|
|
|
|
"id": "ourLogo",
|
|
|
|
"type": "image",
|
|
|
|
"link": "",
|
|
|
|
"icon": "modules/menu/logo.svg"
|
2015-02-22 00:00:23 +01:00
|
|
|
}, {
|
2014-07-13 01:04:16 +02:00
|
|
|
"id": "productName",
|
|
|
|
"type": "default",
|
|
|
|
"link": "",
|
|
|
|
"text": "Product Name"
|
|
|
|
}
|
|
|
|
];
|