Skip to content

Suggest awaiting promise before using it when type mismatches #7498

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 4 commits into from
May 21, 2025

Conversation

zth
Copy link
Collaborator

@zth zth commented May 21, 2025

A small improvement to detect when you're trying to use a promise before awaiting/chaining it. Suggestions for further improvement welcome!

@zth zth requested review from cknitt and tsnobip May 21, 2025 15:19
Copy link
Member

@tsnobip tsnobip left a comment

Choose a reason for hiding this comment

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

looks good to me!

Copy link
Member

@cknitt cknitt left a comment

Choose a reason for hiding this comment

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

Nice one! 👍

@zth zth force-pushed the suggest-await-promise branch from f88e871 to efc6936 Compare May 21, 2025 15:49
@zth zth enabled auto-merge (squash) May 21, 2025 15:49
Copy link

pkg-pr-new bot commented May 21, 2025

Open in StackBlitz

rescript

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

@rescript/darwin-x64

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

@rescript/linux-arm64

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

@rescript/win32-x64

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

@rescript/linux-x64

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

@rescript/darwin-arm64

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

commit: dbe8153

@zth zth merged commit af43e11 into master May 21, 2025
16 checks passed
@zth zth deleted the suggest-await-promise branch May 21, 2025 16:46
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.

3 participants