From 27e741895cc95caee97bf3d771246dab27ac90f1 Mon Sep 17 00:00:00 2001 From: Eberhard Beilharz Date: Thu, 5 Dec 2024 18:39:43 +0100 Subject: [PATCH] refactor(web): explicitly list exports --- web/src/engine/js-processor/src/index.ts | 6 ++---- web/src/engine/keyboard/src/index.ts | 7 +++---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/web/src/engine/js-processor/src/index.ts b/web/src/engine/js-processor/src/index.ts index 4042d72c181..ed2b06427c4 100644 --- a/web/src/engine/js-processor/src/index.ts +++ b/web/src/engine/js-processor/src/index.ts @@ -1,8 +1,6 @@ -export { JSKeyboardProcessor } from "./jsKeyboardProcessor.js"; -export * from "./jsKeyboardProcessor.js"; +export { BeepHandler, JSKeyboardProcessor, LogMessageHandler, ProcessorInitOptions } from "./jsKeyboardProcessor.js"; export { default as RuleBehavior } from "./ruleBehavior.js"; -export * from './jsKeyboardInterface.js'; -export { JSKeyboardInterface } from "./jsKeyboardInterface.js"; +export { JSKeyboardInterface, KeyInformation, StoreNonCharEntry } from "./jsKeyboardInterface.js"; export * from "./systemStores.js"; export * from "./deadkeys.js"; export { default as OutputTarget } from "./outputTarget.js"; diff --git a/web/src/engine/keyboard/src/index.ts b/web/src/engine/keyboard/src/index.ts index a08d6222134..7bd587d303e 100644 --- a/web/src/engine/keyboard/src/index.ts +++ b/web/src/engine/keyboard/src/index.ts @@ -1,7 +1,6 @@ -export * from "./keyboards/activeLayout.js"; -export * from "./keyboards/defaultLayouts.js"; -export { JSKeyboard } from "./keyboards/jsKeyboard.js"; -export * from "./keyboards/jsKeyboard.js"; +export { ActiveKeyBase, ActiveKey, ActiveSubKey, ActiveRow, ActiveLayer, ActiveLayout } from "./keyboards/activeLayout.js"; +export { ButtonClass, ButtonClasses, LayoutLayer, LayoutFormFactor, LayoutRow, LayoutKey, LayoutSubKey, Layouts } from "./keyboards/defaultLayouts.js"; +export { JSKeyboard, LayoutState, VariableStoreDictionary } from "./keyboards/jsKeyboard.js"; export { KeyboardHarness, KeyboardKeymanGlobal, MinimalCodesInterface, MinimalKeymanGlobal } from "./keyboards/keyboardHarness.js"; export { KeyboardLoaderBase } from "./keyboards/keyboardLoaderBase.js"; export { KeyboardLoadErrorBuilder, KeyboardMissingError, KeyboardScriptError, KeyboardDownloadError, InvalidKeyboardError } from './keyboards/keyboardLoadError.js'