Source

chart / lib / base.mli

open Js

(** Some shorter names of JS objects *)

type int_t = int t
type float_t = float t
type string_t = js_string t
type 'a array_t = 'a js_array t

val (~^) : string -> string_t

class type any = object end

val any : 'a t -> any t

external int : int -> int t = "%identity"

val alert : string -> unit
  (** JS alert function *)

val alertf : ('a, unit, string, unit) format4 -> 'a
  (** JS alert function, printf style *)