From 08f2da159e8539750b65aeaaadd8d2f821f1d8da Mon Sep 17 00:00:00 2001 From: Red Adaya Date: Wed, 10 Apr 2024 21:55:12 +0800 Subject: [PATCH] fix model type --- src/util/keyutil.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/util/keyutil.ts b/src/util/keyutil.ts index 16752f44f..15b1bec89 100644 --- a/src/util/keyutil.ts +++ b/src/util/keyutil.ts @@ -1,8 +1,7 @@ import * as React from "react"; import * as mobx from "mobx"; -import * as electron from "electron"; -import { parse } from "node:path"; import { v4 as uuidv4 } from "uuid"; +import { Model } from "@/models"; import defaultKeybindingsFile from "../../assets/default-keybindings.json"; const defaultKeybindings: KeybindConfigArray = defaultKeybindingsFile; @@ -52,7 +51,7 @@ class KeybindManager { activeKeybindsVersion: OV; lastKeyData: { domain: string; keyPress: string }; - constructor(GlobalModel: any) { + constructor(GlobalModel: Model) { this.levelMap = new Map(); this.domainCallbacks = new Map(); this.levelArray = KeybindLevels;