Skip to content

Conversation

@arakoczy
Copy link
Contributor

It's just a small fix for the global test return type. Without this, my IDE gave warning

'await' has no effect on the type of this expression. on the await callback in globalThis.test

Copy link
Member

@kettanaito kettanaito left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

If we want TypeScript to know callback can be async, we need to annotate it as such. Great catch.

@kettanaito kettanaito merged commit 64b8c62 into epicweb-dev:main Jun 27, 2024
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