mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-31 01:11:06 +00:00
Merge pull request #156 from jsheard/jsheard-patch-1
Fix Typescript definition of constructor arguments
This commit is contained in:
commit
da2057610f
@ -371,7 +371,7 @@ impl<'a> Context<'a> {
|
|||||||
", name));
|
", name));
|
||||||
|
|
||||||
if let Some(ref constructor) = class.constructor {
|
if let Some(ref constructor) = class.constructor {
|
||||||
ts_dst.push_str(&format!("constructor(...args: [any]);\n"));
|
ts_dst.push_str(&format!("constructor(...args: any[]);\n"));
|
||||||
|
|
||||||
dst.push_str(&format!("
|
dst.push_str(&format!("
|
||||||
// This invocation of new will call this constructor with a ConstructorToken
|
// This invocation of new will call this constructor with a ConstructorToken
|
||||||
|
Loading…
x
Reference in New Issue
Block a user