Skip to main content

Interface: SuggestionCollector

Defined in: packages/cspell-trie-lib/dist/index.d.ts:361

Properties​

add​

add: (suggestion) => SuggestionCollector

Defined in: packages/cspell-trie-lib/dist/index.d.ts:373

Parameters​

suggestion​

SuggestionResultBase

Returns​

SuggestionCollector


changeLimit​

readonly changeLimit: number

Defined in: packages/cspell-trie-lib/dist/index.d.ts:375


collect​

collect: (src, timeout?, filter?) => void

Defined in: packages/cspell-trie-lib/dist/index.d.ts:372

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: GenSuggestionOptionsRO

Defined in: packages/cspell-trie-lib/dist/index.d.ts:381


ignoreCase​

readonly ignoreCase: boolean

Defined in: packages/cspell-trie-lib/dist/index.d.ts:380


includesTies​

readonly includesTies: boolean

Defined in: packages/cspell-trie-lib/dist/index.d.ts:379


maxCost​

readonly maxCost: number

Defined in: packages/cspell-trie-lib/dist/index.d.ts:376


maxNumSuggestions​

readonly maxNumSuggestions: number

Defined in: packages/cspell-trie-lib/dist/index.d.ts:378


suggestions​

readonly suggestions: SuggestionResult[]

Defined in: packages/cspell-trie-lib/dist/index.d.ts:374


symbolStopProcessing​

readonly symbolStopProcessing: symbol

Defined in: packages/cspell-trie-lib/dist/index.d.ts:385

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:377