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

Allow void in TransformResult #391

Closed
huang-julien opened this issue Jun 28, 2024 · 0 comments · Fixed by #392
Closed

Allow void in TransformResult #391

huang-julien opened this issue Jun 28, 2024 · 0 comments · Fixed by #392
Labels
bug Something isn't working

Comments

@huang-julien
Copy link
Contributor

Environment

unplugin 1.10.1
node 20

Reproduction

https://github.com/nuxt/scripts/blob/d2a3bbb4cc298d8bb2accf6d4931aef7239237d7/src/plugins/check-scripts.ts#L40

Describe the bug

Hello 👋

Sometimes, users can use transform without returning anything. In that case they are forced to specify a return undefined to satisfy typescript.

Additional context

No response

Logs

No response

@huang-julien huang-julien added the bug Something isn't working label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant