Skip to content

Fix compatibility with ReScript 11 uncurried mode #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 11, 2023

Conversation

cknitt
Copy link
Contributor

@cknitt cknitt commented Apr 21, 2023

Some small changes to get this package to compile with ReScript 11 in uncurried mode.

@cknitt cknitt requested review from spocke and TheSpyder as code owners April 21, 2023 11:54
Copy link
Owner

@TheSpyder TheSpyder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. I'll make sure it compiles (don't have CI yet) and then merge for the next release.

@@ -336,6 +336,7 @@ module RequestInit = {
~integrity: string="",
~keepalive: option<bool>=?,
~signal: option<signal>=?,
()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure I left these () out because it was easier to write and wasn't necessary to make the output work, this is fine

/* keys */ /* very experimental */
@send external set: t => (string, string) => unit = "set"
@send external set: (t, string, string) => unit = "set"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I inherited this from the bs-fetch code 🤨 this is totally fine 😂

@TheSpyder
Copy link
Owner

@cknitt can you please run yarn build and add the fetch_examples.js file to the PR? I think this may actually fix a bug in the output, if I"m reading it correctly.

@cknitt
Copy link
Contributor Author

cknitt commented May 11, 2023

Done

@TheSpyder TheSpyder merged commit 651d52f into TheSpyder:main May 11, 2023
@TheSpyder TheSpyder mentioned this pull request Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants