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

Remove semicolon after TypeScript interface definition #15827

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

leotaku
Copy link
Contributor

@leotaku leotaku commented Jan 30, 2025

Summary

This PR removes a trailing semicolon after an interface definition in the custom TypeScript section of ruff_wasm. Currently, this semicolon triggers the error "TS1036: Statements are not allowed in ambient contexts" when including the file and compiling with e.g tsc.

Test Plan

I made the change, ran wasm-pack and copied the generated directory manually to my node_modules folder. I then compiled a file importing @astral-sh/ruff-wasm-web again and confirmed that the compilation error was gone.

This removes a trailing semicolon after an interface definition in
the custom TypeScript section.  Currently, this semicolon triggers
the error "TS1036: Statements are not allowed in ambient contexts".
@leotaku leotaku changed the title [ruff_wasm] Remove semicolon after TypeScript interface definition Remove semicolon after TypeScript interface definition Jan 30, 2025
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

leotaku added a commit to leotaku/jupyter-ruff that referenced this pull request Jan 30, 2025
@dhruvmanila dhruvmanila added internal An internal refactor or improvement bug Something isn't working and removed internal An internal refactor or improvement labels Jan 30, 2025
@dhruvmanila dhruvmanila merged commit b0b8b06 into astral-sh:main Jan 30, 2025
21 checks passed
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 this pull request may close these issues.

2 participants