Added test.
This commit is contained in:
parent
204ce175dd
commit
bda32aeee2
|
@ -0,0 +1,11 @@
|
|||
interface Foo {
|
||||
bar: Bar | Bar[];
|
||||
}
|
||||
|
||||
interface Bar {
|
||||
prop: string;
|
||||
}
|
||||
|
||||
let x: Foo[] = [
|
||||
{ bar: { prop: 100 } }
|
||||
]
|
Loading…
Reference in a new issue