Module

Autocomplete.Types

Package
purescript-autocomplete
Repository
jane/purescript-autocomplete

#Terms Source

type Terms = String

Any string. Terms are normalized for searching. Ex:

"chevron scarves" will become "chevron-scarves" when passed to the API

#Suggestions Source

data Suggestions a

Suggestions are represented as a state and a collection of the currently most relevant suggestions. Ex:

Ready []
Loading []
Ready [a, b, c]
Loading [a, b, c] <- continue displaying these results until better ones are available
Ready [d, e, f]

Constructors

Instances

#SuggestionResults Source