Skip to content

Commit

Permalink
Add readonly to event type strings
Browse files Browse the repository at this point in the history
  • Loading branch information
dli7319 committed Feb 2, 2025
1 parent 3818a39 commit 36134be
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ColorConverterInputEvent.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { InputType } from "./ColorConverterInput";

export class ColorConverterInputEvent extends Event {
static type = "color-converter-input";
static readonly type = "color-converter-input";
inputType: InputType;
value: string;

Expand Down
2 changes: 1 addition & 1 deletion src/ColorPickerSetColorEvent.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Color } from "./Color";

export class ColorPickerSetColorEvent extends Event {
static eventName = "set-color";
static readonly eventName = "set-color";
color: Color;

constructor(color: Color) {
Expand Down
2 changes: 1 addition & 1 deletion src/ColorPickerSetCoordinatesEvent.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Coordinates } from "./Coordinates";

export class ColorPickerSetCoordinatesEvent extends Event {
static eventName = "set-coordinates";
static readonly eventName = "set-coordinates";
coordinates: Coordinates;

constructor(coordinates: Coordinates) {
Expand Down
2 changes: 1 addition & 1 deletion src/ColorPickerSetInterpolationActiveEvent.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ActiveColorSide } from "./ColorInterpolation";

export class ColorPickerSetInterpolationActiveEvent extends Event {
static eventName = "set-interpolation-active";
static readonly eventName = "set-interpolation-active";
active: ActiveColorSide;

constructor(active: ActiveColorSide) {
Expand Down

0 comments on commit 36134be

Please sign in to comment.