14 lines
222 B
TypeScript
14 lines
222 B
TypeScript
type Style = StyleBase | StyleArray;
|
|
interface StyleArray extends Array<Style> {}
|
|
interface StyleBase {
|
|
foo: string;
|
|
}
|
|
|
|
const blah: Style = [
|
|
[[{
|
|
foo: 'asdf',
|
|
jj: 1 // intentional error
|
|
}]]
|
|
];
|
|
|