From e819630c67688537c8090989c331fdb52f86f910 Mon Sep 17 00:00:00 2001 From: Joshua Horton Date: Wed, 22 Apr 2026 09:19:07 -0500 Subject: [PATCH] change(web): add 'type' for circular import (per AI review) --- .../src/main/correction/token-result-mapping.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/engine/predictive-text/worker-thread/src/main/correction/token-result-mapping.ts b/web/src/engine/predictive-text/worker-thread/src/main/correction/token-result-mapping.ts index c5bdd9333d..43d3f5c555 100644 --- a/web/src/engine/predictive-text/worker-thread/src/main/correction/token-result-mapping.ts +++ b/web/src/engine/predictive-text/worker-thread/src/main/correction/token-result-mapping.ts @@ -12,7 +12,10 @@ import { LexicalModelTypes } from '@keymanapp/common-types'; import { CorrectionResultMapping } from './correction-result-mapping.js'; import { SearchNode, TraversableToken } from "./distance-modeler.js"; -import { SearchQuotientNode } from "./search-quotient-node.js"; + +// Circular type reference; do not actually require direct use of the prototype +// or constructor! +import { type SearchQuotientNode } from "./search-quotient-node.js"; import Distribution = LexicalModelTypes.Distribution; import LexiconTraversal = LexicalModelTypes.LexiconTraversal;