Skip to content

Commit da20576

Browse files
authored
Merge pull request #156 from jsheard/jsheard-patch-1
Fix Typescript definition of constructor arguments
2 parents 65acc3b + 0caa6d2 commit da20576

File tree

1 file changed

+1
-1
lines changed
  • crates/cli-support/src/js

1 file changed

+1
-1
lines changed

crates/cli-support/src/js/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ impl<'a> Context<'a> {
371371
", name));
372372

373373
if let Some(ref constructor) = class.constructor {
374-
ts_dst.push_str(&format!("constructor(...args: [any]);\n"));
374+
ts_dst.push_str(&format!("constructor(...args: any[]);\n"));
375375

376376
dst.push_str(&format!("
377377
// This invocation of new will call this constructor with a ConstructorToken

0 commit comments

Comments
 (0)