17 lines
422 B
JavaScript
17 lines
422 B
JavaScript
//// [genericInterfaceFunctionTypeParameter.ts]
|
|
export interface IFoo<A> { }
|
|
export function foo<A>(fn: (ifoo: IFoo<A>) => void) {
|
|
foo(fn); // Invocation is necessary to repro (!)
|
|
}
|
|
|
|
|
|
|
|
|
|
//// [genericInterfaceFunctionTypeParameter.js]
|
|
define(["require", "exports"], function (require, exports) {
|
|
function foo(fn) {
|
|
foo(fn); // Invocation is necessary to repro (!)
|
|
}
|
|
exports.foo = foo;
|
|
});
|