Skip to content

Commit

Permalink
Mark array members as readonly, see #398
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Mar 2, 2023
1 parent f485dad commit fdc425f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/quadrilateral/model/ShapeSnapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class ShapeSnapshot {
public readonly sideBCLength: number;
public readonly sideDALength: number;
public readonly sideCDLength: number;
private readonly sideLengths: number[];
private readonly sideLengths: readonly number[];

public constructor( shapeModel: QuadrilateralShapeModel ) {
this.isParallelogram = shapeModel.isParallelogramProperty.value;
Expand Down

0 comments on commit fdc425f

Please sign in to comment.