Skip to content

Commit b0b8b06

Browse files
authored
Remove semicolon after TypeScript interface definition (#15827)
## 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.
1 parent 451f251 commit b0b8b06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ruff_wasm/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export interface Diagnostic {
5353
};
5454
}[];
5555
} | null;
56-
};
56+
}
5757
"#;
5858

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

0 commit comments

Comments
 (0)