TypeScript/tests/baselines/reference/typeAnnotationBestCommonTypeInArrayLiteral.types

59 lines
1.6 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/typeAnnotationBestCommonTypeInArrayLiteral.ts ===
interface IMenuItem {
>IMenuItem : IMenuItem
2014-08-15 23:33:16 +02:00
id: string;
>id : string
2014-08-15 23:33:16 +02:00
type: string;
>type : string
2014-08-15 23:33:16 +02:00
link?: string;
>link : string
2014-08-15 23:33:16 +02:00
classes?: string;
>classes : string
2014-08-15 23:33:16 +02:00
text?: string;
>text : string
2014-08-15 23:33:16 +02:00
icon?: string;
>icon : string
2014-08-15 23:33:16 +02:00
}
var menuData: IMenuItem[] = [
>menuData : IMenuItem[]
>IMenuItem : IMenuItem
2015-01-24 17:04:23 +01:00
>[ { "id": "ourLogo", "type": "image", "link": "", "icon": "modules/menu/logo.svg" }, { "id": "productName", "type": "default", "link": "", "text": "Product Name" }] : ({ "id": string; "type": string; "link": string; "icon": string; } | { "id": string; "type": string; "link": string; "text": string; })[]
2014-08-15 23:33:16 +02:00
{
2015-01-24 17:04:23 +01:00
>{ "id": "ourLogo", "type": "image", "link": "", "icon": "modules/menu/logo.svg" } : { "id": string; "type": string; "link": string; "icon": string; }
2014-08-15 23:33:16 +02:00
"id": "ourLogo",
2015-04-13 21:36:11 +02:00
>"ourLogo" : string
2014-08-15 23:33:16 +02:00
"type": "image",
2015-04-13 21:36:11 +02:00
>"image" : string
2014-08-15 23:33:16 +02:00
"link": "",
2015-04-13 21:36:11 +02:00
>"" : string
2014-08-15 23:33:16 +02:00
"icon": "modules/menu/logo.svg"
2015-04-13 21:36:11 +02:00
>"modules/menu/logo.svg" : string
2014-08-15 23:33:16 +02:00
}, {
2015-01-24 17:04:23 +01:00
>{ "id": "productName", "type": "default", "link": "", "text": "Product Name" } : { "id": string; "type": string; "link": string; "text": string; }
2014-08-15 23:33:16 +02:00
"id": "productName",
2015-04-13 21:36:11 +02:00
>"productName" : string
2014-08-15 23:33:16 +02:00
"type": "default",
2015-04-13 21:36:11 +02:00
>"default" : string
2014-08-15 23:33:16 +02:00
"link": "",
2015-04-13 21:36:11 +02:00
>"" : string
2014-08-15 23:33:16 +02:00
"text": "Product Name"
2015-04-13 21:36:11 +02:00
>"Product Name" : string
2014-08-15 23:33:16 +02:00
}
];