Hello! I’m trying to write bindings for the @slack/bolt
framework in ReScript and am relatively new to doing bindings for a library. Currently, I’m dealing with defining a function that returns an object that has an ExpressJS.App as a property and getting those bindings to work. I’ve tried numerous things and thought I had it licked, but this is still not working. ReScript doesn’t seem to understand the types
The error is as such:
The record field get can't be found.
If it's defined in another module or file, bring it into scope by:
- Prefixing it with said module name: TheModule.get
- Or specifying its type: let theValue: TheModule.theType = {get: VALUE}
Help would be greatly appreciated! I apologize if this is trivial and if there’s any good learning links you can give me about doing bindings for a library I would greatly appreciate it!