@tsrx/prettier-plugin 0.3.65 → 0.3.66
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 +2 -2
- package/src/index.js +2 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsrx/prettier-plugin",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.66",
|
|
4
4
|
"description": "Ripple plugin for Prettier",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"prettier": "^3.8.3"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@tsrx/core": "0.1.
|
|
30
|
+
"@tsrx/core": "0.1.14"
|
|
31
31
|
},
|
|
32
32
|
"files": [
|
|
33
33
|
"src/"
|
package/src/index.js
CHANGED
|
@@ -2182,9 +2182,7 @@ function printRippleNode(node, path, options, print, args) {
|
|
|
2182
2182
|
|
|
2183
2183
|
// Handle return type
|
|
2184
2184
|
parts.push(' => ');
|
|
2185
|
-
if (node.
|
|
2186
|
-
parts.push(path.call(print, 'returnType'));
|
|
2187
|
-
} else if (node.typeAnnotation) {
|
|
2185
|
+
if (node.typeAnnotation) {
|
|
2188
2186
|
parts.push(path.call(print, 'typeAnnotation'));
|
|
2189
2187
|
}
|
|
2190
2188
|
|
|
@@ -5495,9 +5493,7 @@ function printTSConstructorType(node, path, options, print) {
|
|
|
5495
5493
|
}
|
|
5496
5494
|
parts.push(')');
|
|
5497
5495
|
parts.push(' => ');
|
|
5498
|
-
if (node.
|
|
5499
|
-
parts.push(path.call(print, 'returnType'));
|
|
5500
|
-
} else if (node.typeAnnotation) {
|
|
5496
|
+
if (node.typeAnnotation) {
|
|
5501
5497
|
parts.push(path.call(print, 'typeAnnotation'));
|
|
5502
5498
|
}
|
|
5503
5499
|
return parts;
|