Be a bit more tslint friendly in generated code

This commit is contained in:
Alex Crichton 2018-01-30 07:58:44 -08:00
parent 235bc2957e
commit b75c0354b7
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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()