TypeScript/tests/baselines/reference/assignToPrototype1.js

12 lines
216 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [assignToPrototype1.ts]
declare class Point {
add(dx: number, dy: number): void;
}
Point.prototype.add = function(dx, dy) {
};
//// [assignToPrototype1.js]
Point.prototype.add = function (dx, dy) {
};