mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 02:00:51 +00:00
Enable the --declaration
tsc argument
This commit is contained in:
parent
8d7e6f3cdd
commit
730ef1926e
@ -168,6 +168,7 @@ impl Project {
|
||||
.arg("--noUnusedLocals")
|
||||
.arg("--noUnusedParameters")
|
||||
.arg("--noImplicitReturns")
|
||||
.arg("--declaration")
|
||||
.arg("--lib")
|
||||
.arg("es6");
|
||||
run(&mut cmd, "node");
|
||||
|
@ -370,7 +370,7 @@ impl Js {
|
||||
}
|
||||
|
||||
if extra_exports_interface.len() == 0 {
|
||||
extra_exports_interface.push_str("interface ExtraExports {\n");
|
||||
extra_exports_interface.push_str("export interface ExtraExports {\n");
|
||||
exports_interface.push_str("extra: ExtraExports;\n");
|
||||
exports.push_str("extra: {\n");
|
||||
}
|
||||
@ -417,7 +417,7 @@ impl Js {
|
||||
}
|
||||
|
||||
if extra_imports_interface.len() == 0 {
|
||||
extra_imports_interface.push_str("interface ExtraImports {\n");
|
||||
extra_imports_interface.push_str("export interface ExtraImports {\n");
|
||||
imports_interface.push_str("env: ExtraImports;\n");
|
||||
}
|
||||
imports_object.push_str(import);
|
||||
|
Loading…
x
Reference in New Issue
Block a user