package vue-jsoo

  1. Overview
  2. Docs
type push_obj =
  1. | PPath of {
    1. path : string;
    2. query : (string * string) list;
    }
  2. | PName of {
    1. name : string;
    2. params : (string * Mjs.any) list;
    3. query : (string * string) list;
    }

navigation ML object

val get_query : push_obj -> (string * string) list

get query params from ML object

val get_params : push_obj -> (string * Mjs.any) list option

get params from ML object

type push_arg =
  1. | PStr of string
  2. | PObj of push_obj

navigation ML argument : string ot object

val push_obj : ?params:(string * Mjs.any) list -> ?query:(string * string) list -> string -> push_arg

navigation ML object constructor

type 'a next =
  1. | NUnit
  2. | NFalse
  3. | NRoute of push_obj
  4. | NError of Mjs.error Mjs.t
  5. | NFunction of 'a Mjs.t -> unit

navigation iterator argument for 'next'

class type push_args = object ... end

navigation JS object signature

val to_push_obj : push_args Mjs.t -> push_obj

JS to ML

val of_push_obj : push_obj -> push_args Mjs.t

ML to JS

val wrap_hook : (push_obj -> push_obj -> 'a next) -> ('b, push_args Mjs.t -> push_args Mjs.t -> (Mjs.Unsafe.any -> 'c) -> 'c) Mjs.meth_callback

wrapper for navigation guards that don't have access to this

val wrap_meth_hook : ('a -> push_obj -> push_obj -> 'b next) -> ('a, push_args Mjs.t -> push_args Mjs.t -> (Mjs.Unsafe.any -> 'c) -> 'c) Mjs.meth_callback

wrapper for navigation guards that have access to this

OCaml

Innovation. Community. Security.