Module Autocomplete.SourceSource

Sourcetype t

Completion source

include Jv.CONV with type t := t
val to_jv : t -> Jv.jv

to_jv reveals the JavaScript implementation.

val of_jv : Jv.jv -> t

of_jv hides the JavaScript implementation. Implementations usually do not guarantee type safety.

Sourceval create : (Context.t -> Result.t option Fut.t) -> t
Sourceval from_list : Completion.t list -> t

Given a a fixed array of options, return an autocompleter that completes them.