Skip to content
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

Removes iife in order to use top level await #2

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

Nick-Gabe
Copy link
Contributor

As the project uses esnext both as module and target, it is able to run top-level await which exists since TS 3.8.
Therefore it doesn't need an Immediately Invoked Function, it can use await directly without problems.
Gotta love typescript.

@lunaperegrina lunaperegrina merged commit 22691e0 into lunaperegrina:main Feb 23, 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