esrap 2.2.2 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/languages/ts/index.js +15 -0
package/package.json
CHANGED
|
@@ -566,6 +566,13 @@ export default (options = {}) => {
|
|
|
566
566
|
if (node.superClass) {
|
|
567
567
|
context.write('extends ');
|
|
568
568
|
context.visit(node.superClass);
|
|
569
|
+
|
|
570
|
+
// @ts-expect-error `acorn-typescript` and `@typescript-eslint/types` have slightly different type definitions
|
|
571
|
+
var type_arguments = node.superTypeParameters ?? node.superTypeArguments;
|
|
572
|
+
if (type_arguments) {
|
|
573
|
+
context.visit(type_arguments);
|
|
574
|
+
}
|
|
575
|
+
|
|
569
576
|
context.write(' ');
|
|
570
577
|
}
|
|
571
578
|
|
|
@@ -638,6 +645,14 @@ export default (options = {}) => {
|
|
|
638
645
|
context.write('abstract ');
|
|
639
646
|
}
|
|
640
647
|
|
|
648
|
+
if (node.accessibility) {
|
|
649
|
+
context.write(node.accessibility + ' ');
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
if (node.override) {
|
|
653
|
+
context.write('override ');
|
|
654
|
+
}
|
|
655
|
+
|
|
641
656
|
if (node.static) {
|
|
642
657
|
context.write('static ');
|
|
643
658
|
}
|