package melange

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Provide utilities for manipulating JS types

type symbol

Js symbol type only available in ES6

type bigint_val

Js bigint type only available in ES2020

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 =
  1. | Undefined : undefined_val t
  2. | Null : null_val t
  3. | Boolean : bool t
  4. | Number : float t
  5. | String : string t
  6. | Function : function_val t
  7. | Object : obj_val t
  8. | Symbol : symbol t
  9. | BigInt : bigint_val t
val test : 'a -> 'b t -> bool
test "x" String = true
type tagged_t =
  1. | JSFalse
  2. | JSTrue
  3. | JSNull
  4. | JSUndefined
  5. | JSNumber of float
  6. | JSString of string
  7. | JSFunction of function_val
  8. | JSObject of obj_val
  9. | JSSymbol of symbol
  10. | JSBigInt of bigint_val
val classify : 'a -> tagged_t
OCaml

Innovation. Community. Security.