Skip to content

DoCurious API Reference / types / SearchSuggestion

Interface: SearchSuggestion ​

Defined in: types/explore.types.ts:106

An autocomplete suggestion returned by the search-as-you-type API.

Properties ​

count? ​

optional count: number

Defined in: types/explore.types.ts:114

Number of matching challenges for keyword/category suggestions


id? ​

optional id: string

Defined in: types/explore.types.ts:112

Entity ID (present for challenge and category types)


text ​

text: string

Defined in: types/explore.types.ts:110

Display text shown in the autocomplete dropdown


type ​

type: "challenge" | "category" | "keyword"

Defined in: types/explore.types.ts:108

Whether this suggestion is a specific challenge, a category, or a keyword match

DoCurious Platform Documentation