Interface: SuggestionCollector
Defined in: packages/cspell-trie-lib/dist/index.d.ts:362
Properties
add()
add: (
suggestion) =>SuggestionCollector
Defined in: packages/cspell-trie-lib/dist/index.d.ts:374
Parameters
suggestion
SuggestionResultBase
Returns
SuggestionCollector
changeLimit
readonlychangeLimit:number
Defined in: packages/cspell-trie-lib/dist/index.d.ts:376
collect()
collect: (
src,timeout?,filter?) =>void
Defined in: packages/cspell-trie-lib/dist/index.d.ts:373
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:382
ignoreCase
readonlyignoreCase:boolean
Defined in: packages/cspell-trie-lib/dist/index.d.ts:381
includesTies
readonlyincludesTies:boolean
Defined in: packages/cspell-trie-lib/dist/index.d.ts:380
maxCost
readonlymaxCost:number
Defined in: packages/cspell-trie-lib/dist/index.d.ts:377
maxNumSuggestions
readonlymaxNumSuggestions:number
Defined in: packages/cspell-trie-lib/dist/index.d.ts:379
suggestions
readonlysuggestions:SuggestionResult[]
Defined in: packages/cspell-trie-lib/dist/index.d.ts:375
symbolStopProcessing
readonlysymbolStopProcessing:symbol
Defined in: packages/cspell-trie-lib/dist/index.d.ts:386
Possible value sent to the SuggestionIterator telling it to stop processing.
word
readonlyword:string
Defined in: packages/cspell-trie-lib/dist/index.d.ts:378