---
title: "Discussion on \"Binding to a JavaScript Function that Returns a Variant in ReScript\" | Hashnode"
description: "Discussion on \"Binding to a JavaScript Function that Returns a Variant in ReScript\". ReScript 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..."
url: "https://hashnode.com/posts/binding-to-a-javascript-function-that-returns-a-variant-in-rescript/64512efe41d4ed84f847d63d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Binding to a JavaScript Function that Returns a Variant in ReScript](https://webbureaucrat.hashnode.dev/binding-to-a-javascript-function-that-returns-a-variant-in-rescript?utm_source=hashnode&utm_medium=feed)

ReScript 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...

May 2, 2023 · 5 min read · webbureaucrat.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#rescript](https://hashnode.com/tag/rescript)
-   [#indexeddb](https://hashnode.com/tag/indexeddb)
-   [#variant](https://hashnode.com/tag/variant)
-   [#functional-programming](https://hashnode.com/tag/functional-programming)

## Written by

[webbureaucrat](https://hashnode.com/@webbureaucrat)

@webbureaucrat · Chicago, IL

  
[View profile](https://hashnode.com/@webbureaucrat)

typed functional programming

career public servant and functional programmer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
