TypeScript/tests/cases/compiler/unionTypeWithIndexAndTuple.ts

6 lines
119 B
TypeScript

interface I {
[index: number]: any;
someOtherProperty: number;
}
function f(args: ["a"] | I) { }
f(["a"]);