17 lines
300 B
TypeScript
17 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;
|
|
})();
|