TypeScript/tests/baselines/reference/genericArrayWithoutTypeAnnotation.js
2014-07-12 17:30:19 -07:00

18 lines
300 B
TypeScript

//// [genericArrayWithoutTypeAnnotation.ts]
interface IFoo<T>{
}
class Bar {
public getBar(foo: IFoo[]) {
}
}
//// [genericArrayWithoutTypeAnnotation.js]
var Bar = (function () {
function Bar() {
}
Bar.prototype.getBar = function (foo) {
};
return Bar;
})();