Skip to content

docs: bind functions on default-exported objects - #673

Merged
fhammerschmidt merged 2 commits into
rescript-lang:masterfrom
aspeddro:doc-bindings
Oct 13, 2026
Merged

fhammerschmidt merged 2 commits into
rescript-lang:masterfrom
aspeddro:doc-bindings

Conversation

@aspeddro

@aspeddro aspeddro commented Apr 13, 2023 •

Copy link
Copy Markdown
Collaborator

Document how to bind a function on a default-exported JavaScript object with @module and @scope("default"). Move the original contribution into the current v12 manual and show the generated JavaScript.

Original discussion.

@cristianoc cristianoc left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Screenshot 2023-04-14 at 03 56 19

Screenshot 2023-04-14 at 03 55 45
6d4f0-46bf-49cc-b7b0-552e8d33ea99.png)

@fhammerschmidt

Copy link
Copy Markdown
Member

@aspeddro can you revive this one?

Merge current master and move the original example into the current manual. Update the binding and generated JavaScript for ReScript v12.

Co-authored-by: Pedro Castro <aspeddro@gmail.com>
@fhammerschmidt fhammerschmidt changed the title docs: bind to a function inside an object with default export docs: bind functions on default-exported objects Oct 12, 2026
@fhammerschmidt fhammerschmidt added the ok-to-deploy Trigger deployment if you are sure a PR is safe to deploy. label Oct 12, 2026 — with ChatGPT Codex Connector
@fhammerschmidt
fhammerschmidt enabled auto-merge (squash) October 12, 2026 16:01
@fhammerschmidt
fhammerschmidt merged commit e3a918d into rescript-lang:master Oct 13, 2026
13 checks passed

This branch was successfully deployed

1 active and 1 inactive (outdated) deployments
fork-preview — e669ded2 Deployed Oct 12, 2026 by github-actions[bot]
Preview — 418718da Deployed Apr 13, 2023 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-deploy Trigger deployment if you are sure a PR is safe to deploy.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants