refactor(web): move VariableStoreDictionary to variableStore.ts

This commit is contained in:
Eberhard Beilharz 2025-05-20 12:41:56 +02:00
parent 1b14f5c0bc
commit ff28ebc55a
No known key found for this signature in database
GPG key ID: E9140597606020D3
4 changed files with 8 additions and 8 deletions

View file

@ -1,6 +1,6 @@
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 { JSKeyboard, LayoutState } from "./keyboards/jsKeyboard.js";
export { KeyboardMinimalInterface } from './keyboards/keyboardMinimalInterface.js';
export { KMXKeyboard } from './keyboards/kmxKeyboard.js';
export { KeyboardHarness, KeyboardKeymanGlobal, MinimalCodesInterface, MinimalKeymanGlobal } from "./keyboards/keyboardHarness.js";
@ -32,7 +32,7 @@ export { type KeyDistribution, KeyEventSpec, KeyEvent } from "./keyEvent.js";
export { default as KeyMapping } from "./keyMapping.js";
export { OutputTargetInterface } from "./outputTargetInterface.js";
export { type SystemStoreMutationHandler, MutableSystemStore, SystemStore, SystemStoreIDs, type SystemStoreDictionary } from "./systemStore.js";
export { type VariableStore, VariableStoreSerializer } from "./variableStore.js";
export { type VariableStore, VariableStoreSerializer, VariableStoreDictionary } from "./variableStore.js";
export * from "@keymanapp/web-utils";

View file

@ -4,6 +4,7 @@ import { ActiveKey, ActiveLayout, ActiveSubKey } from "./activeLayout.js";
import { KeyEvent } from "../keyEvent.js";
import { type OutputTargetInterface } from "../outputTargetInterface.js";
import { KeymanWebKeyboard, ModifierKeyConstants, TouchLayout } from "@keymanapp/common-types";
import { VariableStoreDictionary } from "../variableStore.js";
import ComplexKeyboardStore = KeymanWebKeyboard.ComplexKeyboardStore;
import KeyboardObject = KeymanWebKeyboard.KeyboardObject;
@ -30,10 +31,6 @@ export enum LayoutState {
POLYFILLED = 1
}
export interface VariableStoreDictionary {
[name: string]: string;
};
type KmwKeyboardObject = KeyboardObject & {
/**
* Used internally by Keyman Engine for Web to hold preprocessed stores.

View file

@ -3,8 +3,7 @@
*/
import { LexicalModelTypes } from '@keymanapp/common-types';
import { Transcription } from './transcription.js';
import { VariableStore } from '../variableStore.js';
import { VariableStoreDictionary } from './jsKeyboard.js';
import { VariableStore, VariableStoreDictionary } from '../variableStore.js';
import { SystemStoreDictionary } from '../systemStore.js';
/**

View file

@ -4,6 +4,10 @@
* Definitions for variable stores (see kmn reference)
*/
export interface VariableStoreDictionary {
[name: string]: string;
};
export type VariableStore = { [name: string]: string; };
export interface VariableStoreSerializer {