Skip to content

Commit

Permalink
Remove semicolon after TypeScript interface definition (#15827)
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
leotaku authored Jan 30, 2025
1 parent 451f251 commit b0b8b06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff_wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export interface Diagnostic {
};
}[];
} | null;
};
}
"#;

#[derive(Serialize, Deserialize, Eq, PartialEq, Debug)]
Expand Down

0 comments on commit b0b8b06

Please sign in to comment.