Support TS 4.2 abstract constructor signature (#10418)
This commit is contained in:
1 parent
001189677d
commit
fc396277fc
4 files changed
+45
No files matched your search
@@ -296,6 +296,9 @@ function printTypescript(path, options, print) {
|
||||
case "TSConstructSignatureDeclaration":
|
||||
case "TSCallSignatureDeclaration":
|
||||
case "TSConstructorType": {
|
||||
if (n.type === "TSConstructorType" && n.abstract) {
|
||||
parts.push("abstract ");
|
||||
}
|
||||
if (n.type !== "TSCallSignatureDeclaration") {
|
||||
parts.push("new ");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user