Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit 734a72c

Browse files
committed
move to framework
1 parent 380f986 commit 734a72c

File tree

3 files changed

+467
-308
lines changed

3 files changed

+467
-308
lines changed

src/features/constraintMenu/AutoCompletion.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class NegatableWord implements AbstractWord {
9696
}
9797

9898
export class AutoCompleteTree {
99-
constructor(private roots: AutoCompleteNode[]) {}
99+
constructor(protected roots: AutoCompleteNode<AbstractWord>[]) {}
100100

101101
private tokenize(text: string[]): Token[] {
102102
if (!text || text.length == 0) {
@@ -283,9 +283,9 @@ function deduplicateErrors(errors: ValidationError[]): ValidationError[] {
283283
});
284284
}
285285

286-
export interface AutoCompleteNode {
287-
word: AbstractWord;
288-
children: AutoCompleteNode[];
286+
export interface AutoCompleteNode<W extends AbstractWord = AbstractWord> {
287+
word: W;
288+
children: AutoCompleteNode<W>[];
289289
canBeFinal?: boolean;
290290
viewAsLeaf?: boolean;
291291
}

0 commit comments

Comments
 (0)