Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 1751

How to bind this kind of function?

$
0
0

Yes, I omit this part in my example to keep it basic.

I made pretty much all the bindings except this last one I need for a specific use case I’m working on.

let kyInstance = Ky.Instance.create({prefixUrl: "someBasePath"})

kyInstance("path",  {method: "GET"}).json()
kyInstance.get("path").json()

Both functions are valids, but I don’t known how to do the first one in ReScript :thinking:


Viewing all articles
Browse latest Browse all 1751

Trending Articles