Interface: SuggestionCollector
Defined in: packages/cspell-trie-lib/dist/index.d.ts:331
Properties
add()
add: (
suggestion) =>SuggestionCollector
Defined in: packages/cspell-trie-lib/dist/index.d.ts:343
Parameters
suggestion
SuggestionResultBase
Returns
SuggestionCollector
changeLimit
readonlychangeLimit:number
Defined in: packages/cspell-trie-lib/dist/index.d.ts:345
collect()
collect: (
src,timeout?,filter?) =>void
Defined in: packages/cspell-trie-lib/dist/index.d.ts:342
Collection suggestions from a SuggestionIterator
Parameters
src
SuggestionGenerator
the SuggestionIterator used to generate suggestions.
timeout?
number
the amount of time in milliseconds to allow for suggestions.
before sending symbolStopProcessing
Iterator implementation:
filter?
FilterWordFn
Returns
void
Example
r = yield(suggestion);
if (r === collector.symbolStopProcessing) // ...stop generating suggestions.
genSuggestionOptions
readonlygenSuggestionOptions:GenSuggestionOptionsRO
Defined in: packages/cspell-trie-lib/dist/index.d.ts:351
ignoreCase
readonlyignoreCase:boolean
Defined in: packages/cspell-trie-lib/dist/index.d.ts:350
includesTies
readonlyincludesTies:boolean
Defined in: packages/cspell-trie-lib/dist/index.d.ts:349
maxCost
readonlymaxCost:number
Defined in: packages/cspell-trie-lib/dist/index.d.ts:346
maxNumSuggestions
readonlymaxNumSuggestions:number
Defined in: packages/cspell-trie-lib/dist/index.d.ts:348
suggestions
readonlysuggestions:SuggestionResult[]
Defined in: packages/cspell-trie-lib/dist/index.d.ts:344
symbolStopProcessing
readonlysymbolStopProcessing:symbol
Defined in: packages/cspell-trie-lib/dist/index.d.ts:355
Possible value sent to the SuggestionIterator telling it to stop processing.
word
readonlyword:string
Defined in: packages/cspell-trie-lib/dist/index.d.ts:347