12 lines
118 B
TypeScript
12 lines
118 B
TypeScript
interface Foo {
|
|
bar: Bar | Bar[];
|
|
}
|
|
|
|
interface Bar {
|
|
prop: string;
|
|
}
|
|
|
|
let x: Foo[] = [
|
|
{ bar: { prop: 100 } }
|
|
]
|