24 lines
487 B
TypeScript
24 lines
487 B
TypeScript
//// [visibilityOfTypeParameters.ts]
|
|
|
|
export class MyClass {
|
|
protected myMethod<T>(val: T): T {
|
|
return val;
|
|
}
|
|
}
|
|
|
|
//// [visibilityOfTypeParameters.js]
|
|
var MyClass = (function () {
|
|
function MyClass() {
|
|
}
|
|
MyClass.prototype.myMethod = function (val) {
|
|
return val;
|
|
};
|
|
return MyClass;
|
|
})();
|
|
exports.MyClass = MyClass;
|
|
|
|
|
|
//// [visibilityOfTypeParameters.d.ts]
|
|
export declare class MyClass {
|
|
protected myMethod<T>(val: T): T;
|
|
}
|