package js_of_ocaml-compiler

  1. Overview
  2. Docs
Compiler from OCaml bytecode to JavaScript

Install

Dune Dependency

Authors

Maintainers

Sources

js_of_ocaml-5.6.0.tbz
sha256=8435f02633a17ef6c8a1a3171a6537fdb206c00c4fb7d4ca54250df6daf6c23f
sha512=a9556ec69a90ea8ff9b6ea1ab983815e39f6703c7da6df24524e023d76fb04790ffed8666a2671f42c31bca15013a4238ae98a8c1c35d90fabdf9993565a1d99

doc/js_of_ocaml-compiler.runtime/Jsoo_runtime/Js/index.html

Module Jsoo_runtime.JsSource

Sourcetype t
Sourcetype 'a js_array = t
Sourcetype ('a, 'b) meth_callback = t
Sourceval string : string -> t
Sourceval to_string : t -> string
Sourceval bytestring : string -> t
Sourceval to_bytestring : t -> string
Sourceval bool : bool -> t
Sourceval to_bool : t -> bool
Sourceval array : 'a array -> t
Sourceval to_array : t -> 'a array
Sourceval number_of_float : float -> t
Sourceval float_of_number : t -> float
Sourceval number_of_int32 : int32 -> t
Sourceval int32_of_number : t -> int32
Sourceval number_of_nativeint : nativeint -> t
Sourceval nativeint_of_number : t -> nativeint
Sourceval typeof : t -> t
Sourceval instanceof : t -> t -> bool
Sourceval debugger : unit -> unit
Sourceval get : t -> t -> t
Sourceval set : t -> t -> t -> unit
Sourceval delete : t -> t -> unit
Sourceval call : t -> t -> t array -> t
Sourceval fun_call : t -> t array -> t
Sourceval meth_call : t -> string -> t array -> t
Sourceval new_obj : t -> t array -> t
Sourceval new_obj_arr : t -> t js_array -> t
Sourceval obj : (string * t) array -> t
Sourceval equals : t -> t -> bool
Sourceval strict_equals : t -> t -> bool
Sourceval pure_expr : (unit -> 'a) -> 'a
Sourceval eval_string : string -> 'a
Sourceval js_expr : string -> 'a
Sourceval pure_js_expr : string -> 'a
Sourceval callback : ('b -> 'a) -> ('b, 'a) meth_callback
Sourceval callback_with_arguments : (t js_array -> 'b) -> ('c, t js_array -> 'b) meth_callback
Sourceval callback_with_arity : int -> ('a -> 'b) -> ('c, 'a -> 'b) meth_callback
Sourceval meth_callback : ('b -> 'a) -> ('b, 'a) meth_callback
Sourceval meth_callback_with_arity : int -> ('b -> 'a) -> ('b, 'a) meth_callback
Sourceval meth_callback_with_arguments : ('b -> t js_array -> 'a) -> ('b, t js_array -> 'a) meth_callback
Sourceval wrap_callback : ('a -> 'b) -> ('c, 'a -> 'b) meth_callback
Sourceval wrap_meth_callback : ('a -> 'b) -> ('a, 'b) meth_callback
OCaml

Innovation. Community. Security.