cspell-trie-lib
Advanced tools
Comparing version 4.0.16 to 4.1.0
@@ -175,3 +175,3 @@ "use strict"; | ||
const cNode = children.length ? { c: new TrieNode_1.ChildMap(children) } : {}; | ||
return Object.assign({}, cNode, flags); | ||
return Object.assign(Object.assign({}, cNode), flags); | ||
} | ||
@@ -178,0 +178,0 @@ readHeader(iter); |
@@ -10,11 +10,3 @@ import { TrieNode } from './TrieNode'; | ||
} | ||
export interface SuggestionIterator extends IterableIterator<SuggestionResult> { | ||
/** | ||
* Ask for the next result. | ||
* maxCost - sets the max cost for following suggestions | ||
* This is used to limit which suggestions are emitted. | ||
* If the iterator.next() returns `undefined`, it is to request a value for maxCost. | ||
*/ | ||
next: (maxCost?: MaxCost) => IteratorResult<SuggestionResult>; | ||
[Symbol.iterator]: () => SuggestionIterator; | ||
export interface SuggestionIterator extends Generator<SuggestionResult, any, MaxCost | undefined> { | ||
} | ||
@@ -21,0 +13,0 @@ export declare function suggest(root: TrieNode, word: string, maxNumSuggestions?: number, compoundMethod?: CompoundWordsMethod, numChanges?: number): SuggestionResult[]; |
@@ -23,10 +23,3 @@ import { TrieNode } from './TrieNode'; | ||
} | ||
export interface WalkerIterator extends IterableIterator<YieldResult> { | ||
/** | ||
* Ask for the next result. | ||
* goDeeper of true tells the walker to go deeper in the Trie if possible. Default is true. | ||
* This can be used to limit the walker's depth. | ||
*/ | ||
next: (goDeeper?: boolean) => IteratorResult<YieldResult>; | ||
[Symbol.iterator]: () => WalkerIterator; | ||
export interface WalkerIterator extends Generator<YieldResult, any, boolean | undefined> { | ||
} | ||
@@ -41,10 +34,3 @@ /** | ||
} | ||
export interface HintedWalkerIterator extends IterableIterator<YieldResult> { | ||
/** | ||
* Ask for the next result. | ||
* goDeeper of true tells the walker to go deeper in the Trie if possible. Default is true. | ||
* This can be used to limit the walker's depth. | ||
*/ | ||
next: (hinting?: Hinting) => IteratorResult<YieldResult>; | ||
[Symbol.iterator]: () => WalkerIterator; | ||
export interface HintedWalkerIterator extends Generator<YieldResult, any, Hinting | undefined> { | ||
} | ||
@@ -51,0 +37,0 @@ /** |
{ | ||
"name": "cspell-trie-lib", | ||
"version": "4.0.16", | ||
"version": "4.1.0", | ||
"description": "Trie Data Structure to support cspell.", | ||
@@ -60,3 +60,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "b918b39bc90962f48043d44f7a565e8026f08118" | ||
"gitHead": "ebda8f0a8263727a73dcb3dfdf75b9f7b85e344e" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45830
1131