14 lines
269 B
TypeScript
14 lines
269 B
TypeScript
//// [typeParametersInStaticMethods.ts]
|
|
class foo<T> {
|
|
static M(x: (x: T) => { x: { y: T } }) {
|
|
}
|
|
}
|
|
|
|
//// [typeParametersInStaticMethods.js]
|
|
var foo = (function () {
|
|
function foo() {
|
|
}
|
|
foo.M = function (x) {
|
|
};
|
|
return foo;
|
|
}());
|