• Build a typeahead matcher. Repeated keystrokes within timeout accumulate into a search string; returns the index of the first item whose text starts with the buffer, searching forward from from.

    Parameters

    • timeout: number = 500

    Returns (char: string, labels: string[], from: number) => number