From b75c0354b7dab33f21030c0de79156d1f8b8a3d3 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 30 Jan 2018 07:58:44 -0800 Subject: [PATCH] Be a bit more tslint friendly in generated code --- crates/wasm-bindgen-cli-support/src/lib.rs | 2 +- crates/wasm-bindgen-cli-support/src/wasm2es6js.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/wasm-bindgen-cli-support/src/lib.rs b/crates/wasm-bindgen-cli-support/src/lib.rs index aa851788..4b835014 100644 --- a/crates/wasm-bindgen-cli-support/src/lib.rs +++ b/crates/wasm-bindgen-cli-support/src/lib.rs @@ -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, diff --git a/crates/wasm-bindgen-cli-support/src/wasm2es6js.rs b/crates/wasm-bindgen-cli-support/src/wasm2es6js.rs index bd2b6d9e..f0801b54 100644 --- a/crates/wasm-bindgen-cli-support/src/wasm2es6js.rs +++ b/crates/wasm-bindgen-cli-support/src/wasm2es6js.rs @@ -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()