mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 02:00:51 +00:00
Be a bit more tslint friendly in generated code
This commit is contained in:
parent
235bc2957e
commit
b75c0354b7
@ -69,7 +69,7 @@ impl Bindgen {
|
||||
let (js, ts) = js::Js {
|
||||
globals: String::new(),
|
||||
imports: String::new(),
|
||||
typescript: String::new(),
|
||||
typescript: format!("/* tslint:disable */\n"),
|
||||
exposed_globals: Default::default(),
|
||||
config: &self,
|
||||
module: &mut module,
|
||||
|
@ -41,7 +41,7 @@ impl Config {
|
||||
|
||||
impl Output {
|
||||
pub fn typescript(&self) -> String {
|
||||
let mut exports = String::new();
|
||||
let mut exports = format!("/* tslint:disable */\n");
|
||||
|
||||
if let Some(i) = self.module.export_section() {
|
||||
let imported_functions = self.module.import_section()
|
||||
|
Loading…
x
Reference in New Issue
Block a user