Module Js.Types

module Types: Js_types

type symbol 
Js symbol type only available in ES6
type obj_val 
type undefined_val 
This type has only one value undefined
type null_val 
This type has only one value null
type function_val 
type '_ t = 
| Undefined : undefined_val t
| Null : null_val t
| Boolean : bool t
| Number : float t
| String : string t
| Function : function_val t
| Object : obj_val t
| Symbol : symbol t
val test : 'a -> 'b t -> bool
 
  test "x" String = true
  
type tagged_t = 
| JSFalse
| JSTrue
| JSNull
| JSUndefined
| JSNumber of float
| JSString of string
| JSFunction of function_val
| JSObject of obj_val
| JSSymbol of symbol
val classify : 'a -> tagged_t