···7676 unit ->
7777 (Toplevel_api_gen.exec_result, Toplevel_api_gen.err) result Lwt.t
78787979+ val typecheck :
8080+ rpc ->
8181+ string ->
8282+ (Toplevel_api_gen.exec_result, Toplevel_api_gen.err) result Lwt.t
8383+7984 val exec :
8085 rpc ->
8186 string ->
···93989499 let init rpc a = Wraw.init rpc a |> Rpc_lwt.T.get
95100 let setup rpc a = Wraw.setup rpc a |> Rpc_lwt.T.get
101101+ let typecheck rpc a = Wraw.typecheck rpc a |> Rpc_lwt.T.get
96102 let exec rpc a = Wraw.exec rpc a |> Rpc_lwt.T.get
97103 let complete rpc a = Wraw.complete rpc a |> Rpc_lwt.T.get
98104end
+5-1
idl/js_top_worker_client.mli
···4545 printed when starting a toplevel. Note that the toplevel
4646 must be initialised first. *)
47474848+ val typecheck : rpc -> string -> (exec_result, err) result Lwt.t
4949+ (** Typecheck a phrase using the toplevel. The toplevel must have been
5050+ initialised first. *)
5151+4852 val exec : rpc -> string -> (exec_result, err) result Lwt.t
4953 (** Execute a phrase using the toplevel. The toplevel must have been
5050- Initialised first. *)
5454+ initialised first. *)
51555256 val complete : rpc -> string -> (completion_result, err) result Lwt.t
5357 (** Find completions of the incomplete phrase. Completion occurs at the