mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-16 22:41:24 +00:00
Adds support for #[wasm_bindgen(typescript_custom_section)].
This commit is contained in:
@ -2143,6 +2143,10 @@ impl<'a, 'b> SubContext<'a, 'b> {
|
||||
for s in self.program.structs.iter() {
|
||||
self.generate_struct(s)?;
|
||||
}
|
||||
for s in self.program.typescript_custom_sections.iter() {
|
||||
self.cx.typescript.push_str(s);
|
||||
self.cx.typescript.push_str("\n\n");
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user