@squawk
    Preparing search index...

    Function fuzzySearch

    • Ranks items against query using fuzzy matching across each item's searchable fields.

      Each item is scored by taking the best fuzzyScore across the fields returned by FuzzySearchOptions.keys. Results are sorted by descending score; items that tie keep their original input order. A blank query returns an empty array.

      Type Parameters

      • T

        The item type being searched.

      • F extends string = string

        The field-name type, inferred from the search fields.

      Parameters

      • items: readonly T[]

        The items to search.

      • query: string

        The user-entered search text.

      • options: FuzzySearchOptions<T, F>

        Field extraction and result-shaping options.

      Returns FuzzyMatch<T, F>[]

      The ranked matches, best first, capped at FuzzySearchOptions.limit.