@runtime-type-inspector/transpiler 2.2.1 → 2.2.2
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/index.cjs +4 -1
- package/index.mjs +4 -1
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -2568,7 +2568,8 @@
|
|
|
2568
2568
|
TypeQuery = _ts$SyntaxKind.TypeQuery,
|
|
2569
2569
|
TypeOperator = _ts$SyntaxKind.TypeOperator,
|
|
2570
2570
|
KeyOfKeyword = _ts$SyntaxKind.KeyOfKeyword,
|
|
2571
|
-
ConstructorType = _ts$SyntaxKind.ConstructorType
|
|
2571
|
+
ConstructorType = _ts$SyntaxKind.ConstructorType,
|
|
2572
|
+
NamedTupleMember = _ts$SyntaxKind.NamedTupleMember;
|
|
2572
2573
|
switch (node.kind) {
|
|
2573
2574
|
case BigIntKeyword:
|
|
2574
2575
|
return {
|
|
@@ -2718,6 +2719,8 @@
|
|
|
2718
2719
|
return node.getText();
|
|
2719
2720
|
case NumberKeyword:
|
|
2720
2721
|
return node.getText();
|
|
2722
|
+
case NamedTupleMember:
|
|
2723
|
+
return toSourceTS(node.type);
|
|
2721
2724
|
case IntersectionType:
|
|
2722
2725
|
return {
|
|
2723
2726
|
type: 'intersection',
|
package/index.mjs
CHANGED
|
@@ -2195,7 +2195,8 @@ function toSourceTS(node) {
|
|
|
2195
2195
|
TypeQuery,
|
|
2196
2196
|
TypeOperator,
|
|
2197
2197
|
KeyOfKeyword,
|
|
2198
|
-
ConstructorType
|
|
2198
|
+
ConstructorType,
|
|
2199
|
+
NamedTupleMember
|
|
2199
2200
|
} = ts.SyntaxKind;
|
|
2200
2201
|
switch (node.kind) {
|
|
2201
2202
|
case BigIntKeyword:
|
|
@@ -2346,6 +2347,8 @@ function toSourceTS(node) {
|
|
|
2346
2347
|
return node.getText();
|
|
2347
2348
|
case NumberKeyword:
|
|
2348
2349
|
return node.getText();
|
|
2350
|
+
case NamedTupleMember:
|
|
2351
|
+
return toSourceTS(node.type);
|
|
2349
2352
|
case IntersectionType:
|
|
2350
2353
|
return {
|
|
2351
2354
|
type: 'intersection',
|
package/package.json
CHANGED