From 7d323e167406f4707ab31e4808396d03863c0c0b Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Fri, 23 Oct 2026 20:54:15 +0800 Subject: [PATCH] rename: @motajs/system/src/hotkey/type.ts --- packages-user/client-base/src/use/types.ts | 0 packages/system/src/hotkey/__test__/command.test.ts | 2 +- packages/system/src/hotkey/__test__/system.test.ts | 2 +- packages/system/src/hotkey/command.ts | 2 +- packages/system/src/hotkey/index.ts | 2 +- packages/system/src/hotkey/system.ts | 2 +- packages/system/src/hotkey/{type.ts => types.ts} | 0 7 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 packages-user/client-base/src/use/types.ts rename packages/system/src/hotkey/{type.ts => types.ts} (100%) diff --git a/packages-user/client-base/src/use/types.ts b/packages-user/client-base/src/use/types.ts new file mode 100644 index 0000000..e69de29 diff --git a/packages/system/src/hotkey/__test__/command.test.ts b/packages/system/src/hotkey/__test__/command.test.ts index 7ab8756..7cd6b97 100644 --- a/packages/system/src/hotkey/__test__/command.test.ts +++ b/packages/system/src/hotkey/__test__/command.test.ts @@ -3,7 +3,7 @@ import { logger } from '@motajs/common'; import { afterAll, afterEach, describe, expect, it, vi } from 'vitest'; import { HotkeyCommand } from '../command'; import { KeyCode } from '../keyCodes'; -import { HotkeyEmitMode, IHotkeyCommandInit } from '../type'; +import { HotkeyEmitMode, IHotkeyCommandInit } from '../types'; vi.hoisted(() => { vi.stubGlobal('main', { replayChecking: true }); diff --git a/packages/system/src/hotkey/__test__/system.test.ts b/packages/system/src/hotkey/__test__/system.test.ts index 1c6baab..33fd245 100644 --- a/packages/system/src/hotkey/__test__/system.test.ts +++ b/packages/system/src/hotkey/__test__/system.test.ts @@ -4,7 +4,7 @@ import { logger } from '@motajs/common'; import { afterAll, afterEach, describe, expect, it, vi } from 'vitest'; import { KeyCode } from '../keyCodes'; import { HotkeySystem } from '../system'; -import { HotkeyEmitMode, IHotkeyCommand, IHotkeyCommandInit } from '../type'; +import { HotkeyEmitMode, IHotkeyCommand, IHotkeyCommandInit } from '../types'; vi.hoisted(() => { vi.stubGlobal('main', { replayChecking: true }); diff --git a/packages/system/src/hotkey/command.ts b/packages/system/src/hotkey/command.ts index d1d9ce4..8d99e6a 100644 --- a/packages/system/src/hotkey/command.ts +++ b/packages/system/src/hotkey/command.ts @@ -1,6 +1,6 @@ import { logger } from '@motajs/common'; import { KeyCode } from './keyCodes'; -import { HotkeyEmitMode, IHotkeyCommand, IHotkeyCommandInit } from './type'; +import { HotkeyEmitMode, IHotkeyCommand, IHotkeyCommandInit } from './types'; export class HotkeyCommand implements IHotkeyCommand { readonly priority: number; diff --git a/packages/system/src/hotkey/index.ts b/packages/system/src/hotkey/index.ts index ed59e90..2b0507b 100644 --- a/packages/system/src/hotkey/index.ts +++ b/packages/system/src/hotkey/index.ts @@ -3,4 +3,4 @@ export * from './hotkey'; export * from './keyboard'; export * from './keyCodes'; export * from './system'; -export * from './type'; +export * from './types'; diff --git a/packages/system/src/hotkey/system.ts b/packages/system/src/hotkey/system.ts index 4da598b..38bb21a 100644 --- a/packages/system/src/hotkey/system.ts +++ b/packages/system/src/hotkey/system.ts @@ -9,7 +9,7 @@ import { IHotkeyEmitContext, IHotkeyEmitInfo, IHotkeySystem -} from './type'; +} from './types'; interface IHotkeyScope { /** 作用域唯一标识符 */ diff --git a/packages/system/src/hotkey/type.ts b/packages/system/src/hotkey/types.ts similarity index 100% rename from packages/system/src/hotkey/type.ts rename to packages/system/src/hotkey/types.ts