TypeScript/tests/cases/compiler/objectLiteralsAgainstUnionsOfArrays01.ts

12 lines
118 B
TypeScript
Raw Normal View History

2018-07-18 06:52:24 +02:00
interface Foo {
bar: Bar | Bar[];
}
interface Bar {
prop: string;
}
let x: Foo[] = [
{ bar: { prop: 100 } }
]