cspell-trie-lib 9.6.1 → 9.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { DictionaryDefinitionAugmented, SuggestionCostMapDef } from "@cspell/cspell-types";
2
- import { Operator } from "@cspell/cspell-pipe/sync";
3
2
 
4
3
  //#region src/lib/BuildOptions.d.ts
5
4
  interface BuildOptions {
@@ -16,7 +15,6 @@ interface BuildOptions {
16
15
  }
17
16
  //#endregion
18
17
  //#region src/lib/distance/weightedMaps.d.ts
19
-
20
18
  /**
21
19
  * Costs are minimized while penalties are maximized.
22
20
  */
@@ -633,6 +631,9 @@ type DictionaryInformation = Exclude<DictionaryDefinitionAugmented["dictionaryIn
633
631
  //#region src/lib/mappers/mapDictionaryInfoToWeightMap.d.ts
634
632
  declare function mapDictionaryInformationToWeightMap(dictInfo: DictionaryInformation): WeightMap;
635
633
  //#endregion
634
+ //#region ../cspell-pipe/dist/operators/types.d.ts
635
+ type OperatorSync<T, U = T> = (i: Iterable<T>) => Iterable<U>;
636
+ //#endregion
636
637
  //#region src/lib/TrieNode/find.d.ts
637
638
  interface FindResult {
638
639
  found: string | false;
@@ -829,7 +830,7 @@ interface ParseDictionaryOptions extends BuildOptions {
829
830
  * @param options - defines prefixes used when parsing lines.
830
831
  * @returns words that have been normalized.
831
832
  */
832
- declare function createDictionaryLineParserMapper(options?: Partial<ParseDictionaryOptions>): Operator<string>;
833
+ declare function createDictionaryLineParserMapper(options?: Partial<ParseDictionaryOptions>): OperatorSync<string>;
833
834
  /**
834
835
  * Normalizes a dictionary words based upon prefix / suffixes.
835
836
  * Case insensitive versions are also generated.