Fix Typescript definition of constructor arguments

This commit is contained in:
Joshua Sheard 2018-04-22 10:57:00 +01:00 committed by GitHub
parent 65acc3b692
commit 0caa6d2ec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -371,7 +371,7 @@ impl<'a> Context<'a> {
", name));
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!("
// This invocation of new will call this constructor with a ConstructorToken