Skip to content

Recommend stdlib functions over Belt for converting between float/int/string #7453

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 3 commits into from
May 9, 2025

Conversation

mediremi
Copy link
Contributor

@mediremi mediremi commented May 9, 2025

Updates the tip shown in type errors like You can convert string to int with Belt.Int.toString to instead recommend stdlib (e.g. Int.toString)

@zth zth self-requested a review May 9, 2025 12:19
Copy link
Collaborator

@zth zth left a comment

Choose a reason for hiding this comment

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

Awesome!

@zth zth enabled auto-merge (squash) May 9, 2025 12:19
auto-merge was automatically disabled May 9, 2025 16:35

Head branch was pushed to by a user without write access

@zth zth enabled auto-merge (squash) May 9, 2025 16:36
Copy link

pkg-pr-new bot commented May 9, 2025

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript-lang/rescript@7453

@rescript/darwin-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-x64@7453

@rescript/linux-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-x64@7453

@rescript/linux-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-arm64@7453

@rescript/win32-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/win32-x64@7453

@rescript/darwin-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-arm64@7453

commit: 4a57104

@zth zth merged commit 441754e into rescript-lang:master May 9, 2025
21 checks passed
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