Tagged “indexeddb”
-
Binding to a JavaScript Function that Returns a Variant in ReScript
javascript indexeddb rescript variantReScript provides easy ways to bind to most JavaScript functions in a way that feels both native and safe. Conveniently, it even provides an
@unwrap
decorator for parametric polymorphism. However, there are a few places where we still have to fill in the gaps. This article documents how to bind to a JavaScript function that can return any one of several different types using ReScript variants.
See all tags.