4 lines
120 B
TypeScript
4 lines
120 B
TypeScript
|
interface I { x: number; }
|
||
|
interface Idx { [index: string]: U; }
|
||
|
type U = Idx | I | "lit";
|
||
|
const u: U = { x: "lit" };
|