JsA value of this type can be either null or 'a. This type is the same as type t in Null
A value of this type can be either undefined or 'a. This type is the same as type t in Undefined
A value of this type can be undefined, null or 'a. This type is the same as type t n Nullable
The type for JavaScript Blob
The type for JavaScript File
let toOption: nullable('a) => option('a);let undefinedToOption: undefined('a) => option('a);let nullToOption: null('a) => option('a);let isNullable: nullable('a) => bool;let import: 'a => promise('a);TODO(anmonteiro): document
The same as isNullable except that it is more permissive on the types of input
let undefined: undefined('a);The same as empty Js.Undefined will be compiled as undefined
typeof x will be compiled as typeof x in JS Please consider functions in Types for a type safe way of reflection
let eqNull: 'a => null('a) => bool;let eqUndefined: 'a => undefined('a) => bool;let eqNullable: 'a => nullable('a) => bool;unsafe_lt a b will be compiled as a < b. It is marked as unsafe, since it is impossible to give a proper semantics for comparision which applies to any type
unsafe_le a b will be compiled as a <= b. See also unsafe_lt
unsafe_gt a b will be compiled as a > b. See also unsafe_lt
unsafe_ge a b will be compiled as a >= b. See also unsafe_lt
Types for JS objects
module Exn: { ... };Utilities for dealing with Js exceptions
module String: { ... };Bindings to the functions in String.prototype
module Array: { ... };Bindings to the functions in Array.prototype
module Re: { ... };Bindings to the functions in RegExp.prototype
module Promise: { ... };Bindings to JS Promise functions
module Date: { ... };Bindings to the functions in JS's Date.prototype
module Dict: { ... };Utility functions to treat a JS object as a dictionary
module Global: { ... };Bindings to functions in the JS global namespace
module Json: { ... };Utility functions to manipulate JSON values
module Math: { ... };Bindings to the functions in the Math object
module Obj: { ... };Utility functions on `Js.t` JS objects
module Typed_array: { ... };Bindings to the functions in TypedArray.prototype
module Types: { ... };Utility functions for runtime reflection on JS types
module Float: { ... };Bindings to functions in JavaScript's Number that deal with floats
module Int: { ... };Bindings to functions in JavaScript's Number that deal with ints
module Bigint: { ... };Bindings to functions in JavaScript's BigInt
module Console: { ... };module Set: { ... };Bindings to functions in Set
module WeakSet: { ... };Bindings to functions in WeakSet
module Map: { ... };Bindings to functions in Map
module WeakMap: { ... };Bindings to functions in WeakMap
module Iterator: { ... };Bindings to functions on Iterator
module Blob: { ... };Bindings to Blob
module File: { ... };Bindings to File
module FormData: { ... };Bindings to FormData