Type Alias Suggestion

Suggestion: {
    score: number;
    suggestion: string;
    terms: string[];
}

The type of auto-suggestions

Type declaration

  • score: number

    Score for the suggestion

  • suggestion: string

    The suggestion

  • terms: string[]

    Suggestion as an array of terms