Interface: SuggestionCollector
Defined in: packages/cspell-trie-lib/dist/index.d.ts:312
Properties
add()
add: (
suggestion
) =>SuggestionCollector
Defined in: packages/cspell-trie-lib/dist/index.d.ts:324
Parameters
suggestion
SuggestionResultBase
Returns
SuggestionCollector
changeLimit
readonly
changeLimit:number
Defined in: packages/cspell-trie-lib/dist/index.d.ts:326
collect()
collect: (
src
,timeout
?,filter
?) =>void
Defined in: packages/cspell-trie-lib/dist/index.d.ts:323
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
readonly
genSuggestionOptions:Partial
Defined in: packages/cspell-trie-lib/dist/index.d.ts:332
ignoreCase
readonly
ignoreCase:boolean
Defined in: packages/cspell-trie-lib/dist/index.d.ts:331
includesTies
readonly
includesTies:boolean
Defined in: packages/cspell-trie-lib/dist/index.d.ts:330
maxCost
readonly
maxCost:number
Defined in: packages/cspell-trie-lib/dist/index.d.ts:327
maxNumSuggestions
readonly
maxNumSuggestions:number
Defined in: packages/cspell-trie-lib/dist/index.d.ts:329
suggestions
readonly
suggestions:SuggestionResult
[]
Defined in: packages/cspell-trie-lib/dist/index.d.ts:325
symbolStopProcessing
readonly
symbolStopProcessing:symbol
Defined in: packages/cspell-trie-lib/dist/index.d.ts:336
Possible value sent to the SuggestionIterator telling it to stop processing.
word
readonly
word:string
Defined in: packages/cspell-trie-lib/dist/index.d.ts:328