Bind and rename class export from library

Hello! I’m trying to write bindings for @slack/bolt and I’m new to ReScript. I’m not seeing a clear explanation on how to bind to a class export of ExpressReciever. I know I need to use @new but it seems that I need to rename the variable because it’s an uppercase first letter. Can someone point me in the right direction?

Hello! Welcome. If you can post a snippet of how you’d have used that API in JS, then we can figure out a binding for it.

Thanks for the reply! I think I got it figured out!

@module("@slack/bolt") @new
external createExpressReceiver: expressReceiverOptions => expressReceiver = "ExpressReceiver"
1 Like