Interface Input<T>

The fuzzy search input.

interface Input<T> {
    items: readonly T[];
    pattern: string;
    transform: ((item) => string);
}

Type Parameters

  • T

Properties

items: readonly T[]

The items to filter based on the pattern.

pattern: string

The pattern to match.

transform: ((item) => string)

Function that extracts the string from the inputs which will be used to evaluate the fuzzy matching filter.

Type declaration

    • (item): string
    • Parameters

      • item: T

      Returns string