123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131(** The Js equivalent library (very unsafe) *)includeJs_internaltype'at=<..>as'amoduleFn=structtype'aarity0={i0:unit->'a[@internal]}type'aarity1={i1:'a[@internal]}type'aarity2={i2:'a[@internal]}type'aarity3={i3:'a[@internal]}type'aarity4={i4:'a[@internal]}type'aarity5={i5:'a[@internal]}type'aarity6={i6:'a[@internal]}type'aarity7={i7:'a[@internal]}type'aarity8={i8:'a[@internal]}type'aarity9={i9:'a[@internal]}type'aarity10={i10:'a[@internal]}type'aarity11={i11:'a[@internal]}type'aarity12={i12:'a[@internal]}type'aarity13={i13:'a[@internal]}type'aarity14={i14:'a[@internal]}type'aarity15={i15:'a[@internal]}type'aarity16={i16:'a[@internal]}type'aarity17={i17:'a[@internal]}type'aarity18={i18:'a[@internal]}type'aarity19={i19:'a[@internal]}type'aarity20={i20:'a[@internal]}type'aarity21={i21:'a[@internal]}type'aarity22={i22:'a[@internal]}end(**/**)(* module MapperRt = Js_mapperRt *)moduleInternal=struct(* open Fn *)(* Use opaque instead of [._n] to prevent some optimizations happening *)end(**/**)type+'anull='aJs_internal.nulltype+'aundefined='aJs_internal.undefinedtype+'anullable='aJs_internal.nullableexternaltoOption:'anull->'aoption="%identity"externalnullToOption:'anull->'aoption="%identity"externalundefinedToOption:'anull->'aoption="%identity"externalfromOpt:'aoption->'aundefined="%identity"(** The same as [empty] {!Js.Undefined} will be compiled as [undefined]*)letundefined=None(** The same as [empty] in {!Js.Null} will be compiled as [null]*)letnull=Noneletempty=Nonetype(+'a,+'e)promise(* external eqNull : 'a -> 'a null -> bool = "%bs_equal_null" *)(* let eqNull : 'a -> 'a null -> bool = fun x -> x == None *)(* external eqUndefined : 'a -> 'a undefined -> bool = "%bs_equal_undefined" *)(* let eqUndefined : 'a -> 'a undefined -> bool = function
| Some _ -> false
| None -> true *)(* external eqNullable : 'a -> 'a nullable -> bool = "%bs_equal_nullable" *)(* let eqNullable : 'a -> 'a nullable -> bool = function
| Some _ -> false
| None -> true *)(** [typeof x] will be compiled as [typeof x] in JS Please consider functions in {!Types} for a type safe way of
reflection *)lettypeof_=notImplemented"Js""typeof"(** {4 operators}*)(* external unsafe_lt : 'a -> 'a -> bool = "#unsafe_lt" *)(** [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 *)(* external unsafe_le : 'a -> 'a -> bool = "#unsafe_le" *)(** [unsafe_le a b] will be compiled as [a <= b]. See also {!unsafe_lt} *)(* external unsafe_gt : 'a -> 'a -> bool = "#unsafe_gt" *)(** [unsafe_gt a b] will be compiled as [a > b]. See also {!unsafe_lt} *)(* external unsafe_ge : 'a -> 'a -> bool = "#unsafe_ge" *)(** [unsafe_ge a b] will be compiled as [a >= b]. See also {!unsafe_lt} *)(** {12 nested modules}*)moduleNull=Js_nullmoduleUndefined=Js_undefinedmoduleNullable=Js_nullablemoduleNull_undefined=NullablemoduleExn=Js_exnmoduleArray=Js_arraymoduleRe=Js_remoduleString=Js_stringmodulePromise=Js_promisemoduleDate=Js_datemoduleDict=Js_dictmoduleGlobal=Js_globalmoduleTypes=Js_typesmoduleJson=Js_jsonmoduleMath=Js_mathmoduleObj=Js_objmoduleTyped_array=Js_typed_arraymoduleTypedArray2=Js_typed_array2moduleFloat=Js_floatmoduleInt=Js_intmoduleBigint=Js_bigintmoduleVector=Js_vectormoduleConsole=Js_consoleletlog=Console.logletlog2=Console.log2letlog3=Console.log3letlog4=Console.log4letlogMany=Console.logManymoduleSet=Js_setmoduleWeakSet=Js_weaksetmoduleMap=Js_mapmoduleWeakMap=Js_weakmapmoduleFormData=Js_formdata