prettier/tests/decorators-ts/accessor-decorator.ts

19 lines
256 B
TypeScript

class Point {
private _x: number;
private _y: number;
constructor(x: number, y: number) {
this._x = x;
this._y = y;
}
@configurable(false)
get x() {
return this._x;
}
@configurable(false)
get y() {
return this._y;
}
}