Frontend
Sourceval initialise :
string option ->
string ->
string list ->
bool ->
(unit -> unit) ->
(Js_top_worker_client_fut.rpc, Js_top_worker_rpc__Toplevel_api_gen.err)
Fut.result
type ostate = {
id : string;
output_id : string;
solution : string option;
ty : block_ty;
mime_only : bool;
execute : bool;
rpc : Js_top_worker_client_fut.rpc;
}
val init :
?doc:string ->
?exts:Code_mirror.Extension.t list ->
unit ->
Code_mirror.State.EditorState.t * Code_mirror.View.EditorView.t
val make_editor :
bool ->
Js_top_worker_client_fut.rpc ->
int ->
Brr.El.t ->
(Code_mirror.State.EditorState.t * Code_mirror.View.EditorView.t) option
val init_page :
string option ->
string ->
string list ->
bool ->
(unit, Js_top_worker_rpc__Toplevel_api_gen.err) Fut.result