mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-05-30 06:01:21 +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("--noUnusedLocals")
|
||||||
.arg("--noUnusedParameters")
|
.arg("--noUnusedParameters")
|
||||||
.arg("--noImplicitReturns")
|
.arg("--noImplicitReturns")
|
||||||
|
.arg("--declaration")
|
||||||
.arg("--lib")
|
.arg("--lib")
|
||||||
.arg("es6");
|
.arg("es6");
|
||||||
run(&mut cmd, "node");
|
run(&mut cmd, "node");
|
||||||
|
@ -370,7 +370,7 @@ impl Js {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if extra_exports_interface.len() == 0 {
|
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_interface.push_str("extra: ExtraExports;\n");
|
||||||
exports.push_str("extra: {\n");
|
exports.push_str("extra: {\n");
|
||||||
}
|
}
|
||||||
@ -417,7 +417,7 @@ impl Js {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if extra_imports_interface.len() == 0 {
|
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_interface.push_str("env: ExtraImports;\n");
|
||||||
}
|
}
|
||||||
imports_object.push_str(import);
|
imports_object.push_str(import);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user