From 2eb5c4b6352d0f29beb2ab6b56ba1dda366b41ea Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Tue, 5 Nov 2024 23:25:04 +0100 Subject: [PATCH] fix: fix types in ConsoleMixin Signed-off-by: Stefan Dej --- src/components/mixins/console.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/mixins/console.ts b/src/components/mixins/console.ts index 679c2e987..e337bb658 100644 --- a/src/components/mixins/console.ts +++ b/src/components/mixins/console.ts @@ -1,13 +1,12 @@ import Vue from 'vue' import Component from 'vue-class-component' -import { CommandHelp } from '@/store/printer/types' import { GuiConsoleStateFilter } from '@/store/gui/console/types' @Component export default class ConsoleMixin extends Vue { - get helplist(): CommandHelp[] { - const commands = this.$store.state.printer.gcode?.commands ?? {} - const helplist: { command: string; help: string } = [] + get helplist() { + const commands: { [key: string]: { help?: string } } = this.$store.state.printer.gcode?.commands ?? {} + const helplist: { command: string; help: string }[] = [] for (const [key, values] of Object.entries(commands)) { helplist.push({ command: key, help: values.help ?? '' })