Source

xJs / lib / google.mli

Full commit
(* Implements a very small subset of Google API *)

open Js
open Std

class type t = object
  method load : string_t (* name *) -> string_t (* version *) -> 'option Js.t (* option *) -> unit meth
  method setOnLoadCallback : (unit -> unit) (* ? *) -> unit meth
end

val get_google : unit -> t Js.t
val load : string_t -> string_t -> 'option Js.t -> unit
val setOnLoadCallback : (unit -> unit) -> unit