Skip to content

Commit

Permalink
fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
went2 committed Jul 10, 2023
1 parent 78f24f5 commit b2e436f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/uiControls/bottom/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { EditorState, UIComponent, EditorConfig } from "@/types";
import { EditorState, UIComponent } from "@/types";
import elt from "@/utils/createElement";
import SaveButton from "./SaveButton";

class BottomControls implements UIComponent {
public dom: HTMLElement;
private controls: UIComponent[];

constructor(state: EditorState, config: EditorConfig) {
constructor(state: EditorState) {
this.controls = [new SaveButton(state)];

this.dom = elt(
Expand Down
2 changes: 1 addition & 1 deletion src/components/uiControls/left/ColorSelect.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import elt from "@/utils/createElement";
import { UIComponent, EditorState, EditorConfig, ActionObj } from "@/types";
import { UIComponent, EditorState, EditorConfig } from "@/types";

class ColorSelect implements UIComponent {
public input: HTMLInputElement;
Expand Down
2 changes: 1 addition & 1 deletion src/components/uiControls/right/ClearButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import elt from "@/utils/createElement";
class ClearButton implements UIComponent {
public dom: HTMLButtonElement;

constructor(state: EditorState, { dispatch }: EditorConfig) {
constructor(_: EditorState, { dispatch }: EditorConfig) {
this.dom = elt(
"button",
{
Expand Down
1 change: 0 additions & 1 deletion src/components/uiControls/top/SetSizeButton.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Picture from "@/models/picture";
import { ActionObj, EditorConfig, EditorState, UIComponent } from "@/types";
import elt from "@/utils/createElement";

Expand Down

0 comments on commit b2e436f

Please sign in to comment.