package ocamlformat-rpc
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
module IO : sig ... end
module V : sig ... end
type state =
| Waiting_for_version
| Version_defined of Ocamlformat_rpc_lib.Version.t * Ocamlformat.Conf.t
val format :
Ocamlformat.Syntax.t ->
Ocamlformat.Conf.t ->
Ocamlformat_stdlib.string ->
(Ocamlformat_stdlib.string, Ocamlformat.Translation_unit.Error.t)
Ocamlformat_stdlib.Result.t
val run_config :
Ocamlformat.Conf.t ->
(Ocamlformat_stdlib.string * Ocamlformat_stdlib.string) list ->
(Ocamlformat.Conf.t, [> `Config_error of Ocamlformat.Config_option.Error.t ])
Ocamlformat_stdlib.result
val run_path :
Ocamlformat_stdlib.string ->
(Ocamlformat.Conf.t, [> `Path_error of Ocamlformat_stdlib.string ])
Ocamlformat_stdlib.result
val run_format :
Ocamlformat.Conf.t ->
Ocamlformat_stdlib.string ->
([> `Format of Ocamlformat_stdlib.string ], [> `Format_error of string ])
Ocamlformat_stdlib.result
val run_format_with_args :
Ocamlformat_rpc_lib.format_args ->
Ocamlformat.Conf.t ->
Ocamlformat_stdlib.string ->
([> `Format of Ocamlformat_stdlib.string ],
[> `Config_error of Ocamlformat.Config_option.Error.t
| `Format_error of string
| `Path_error of Ocamlformat_stdlib.string ])
Ocamlformat_stdlib.Result.t
val handle_config_error :
Ocamlformat.Config_option.Error.t ->
(Ocamlformat_stdlib.Out_channel.t -> [> `Error of string ] -> 'a) ->
Base.unit
val handle_error :
[< `Config_error of Ocamlformat.Config_option.Error.t
| `Format_error of string
| `Path_error of string ] ->
(Ocamlformat_stdlib.Out_channel.t -> [> `Error of string ] -> 'a) ->
Base.unit
val rpc_main : state -> (unit, 'a) Ocamlformat_stdlib.result
val run : unit -> (unit, 'a) Ocamlformat_stdlib.result
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>