5 lines
No EOL
205 B
TypeScript
5 lines
No EOL
205 B
TypeScript
interface Int<T, U> {
|
|
[s: string]: (x: T) => U;
|
|
}
|
|
declare function foo<T, U>(x: T, y: Int<T, U>, z: Int<U, T>): T;
|
|
foo("", { method(p1) { return p1.length } }, { method(p2) { return undefined } }); |