19 lines
335 B
TypeScript
19 lines
335 B
TypeScript
//// [implementInterfaceAnyMemberWithVoid.ts]
|
|
interface I {
|
|
foo(value: number);
|
|
}
|
|
|
|
class Bug implements I {
|
|
public foo(value: number) {
|
|
}
|
|
}
|
|
|
|
|
|
//// [implementInterfaceAnyMemberWithVoid.js]
|
|
var Bug = (function () {
|
|
function Bug() {
|
|
}
|
|
Bug.prototype.foo = function (value) {
|
|
};
|
|
return Bug;
|
|
})();
|