Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SuggestRequest

import type { SuggestRequest } from "https://googleapis.deno.dev/v1/cloudsearch:v1.ts";

Request of suggest API.

interface SuggestRequest {
dataSourceRestrictions?: DataSourceRestriction[];
query?: string;
requestOptions?: RequestOptions;
}

§Properties

§
dataSourceRestrictions?: DataSourceRestriction[]
[src]

The sources to use for suggestions. If not specified, the data sources are taken from the current search application. NOTE: Suggestions are only supported for the following sources: * Third-party data sources * PredefinedSource.PERSON * PredefinedSource.GOOGLE_DRIVE

§
query?: string
[src]

Partial query for which autocomplete suggestions will be shown. For example, if the query is "sea", then the server might return "season", "search", "seagull" and so on.

§
requestOptions?: RequestOptions
[src]

Request options, such as the search application and user timezone.