mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-22 09:11:35 +00:00
Be a bit more tslint friendly in generated code
This commit is contained in:
@ -69,7 +69,7 @@ impl Bindgen {
|
|||||||
let (js, ts) = js::Js {
|
let (js, ts) = js::Js {
|
||||||
globals: String::new(),
|
globals: String::new(),
|
||||||
imports: String::new(),
|
imports: String::new(),
|
||||||
typescript: String::new(),
|
typescript: format!("/* tslint:disable */\n"),
|
||||||
exposed_globals: Default::default(),
|
exposed_globals: Default::default(),
|
||||||
config: &self,
|
config: &self,
|
||||||
module: &mut module,
|
module: &mut module,
|
||||||
|
@ -41,7 +41,7 @@ impl Config {
|
|||||||
|
|
||||||
impl Output {
|
impl Output {
|
||||||
pub fn typescript(&self) -> String {
|
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() {
|
if let Some(i) = self.module.export_section() {
|
||||||
let imported_functions = self.module.import_section()
|
let imported_functions = self.module.import_section()
|
||||||
|
Reference in New Issue
Block a user