Fix constructor argument declaration

This commit is contained in:
Michael Lumish 2020-06-18 10:14:55 -07:00
parent 8bfa472df0
commit c6e17f2758
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ function generateMasterFile(formatter: TextFormatter, root: Protobuf.Root, optio
formatter.writeLine('type ConstructorArguments<Constructor> = Constructor extends new (...args: infer Args) => any ? Args: never;');
formatter.writeLine('type SubtypeConstructor<Constructor, Subtype> = {');
formatter.writeLine(' new(args: ConstructorArguments<Constructor>): Subtype;');
formatter.writeLine(' new(...args: ConstructorArguments<Constructor>): Subtype;');
formatter.writeLine('}');
formatter.writeLine('');