CompletionFilter
CompletionFilter = (
query,option) => [number,number[]] |undefined
Defined in: extensions/autocomplete/types.ts:183
Function that matches an option against the query. If the option matches the query, the function returns an array containing two entries:
- The score of the match. A higher score means a better match.
- An array of matched ranges. Each even index defines the start of a range. The subsequent index defines the end of that range.
Parameters
Section titled “Parameters”string
option
Section titled “option”string
Returns
Section titled “Returns”[number, number[]] | undefined