@runtime-type-inspector/transpiler 3.2.3 → 3.2.4
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 +5 -1
- package/index.mjs +5 -1
- package/package.json +2 -2
package/index.cjs
CHANGED
|
@@ -3263,7 +3263,11 @@
|
|
|
3263
3263
|
if (node.params.length !== 1) {
|
|
3264
3264
|
this.warn("getJSDoc> setters require exactly one argument");
|
|
3265
3265
|
}
|
|
3266
|
-
|
|
3266
|
+
var setterType = parseJSDocSetter(lastComment.value, this.expandType);
|
|
3267
|
+
if (!setterType) {
|
|
3268
|
+
return;
|
|
3269
|
+
}
|
|
3270
|
+
return _defineProperty({}, paramName, setterType);
|
|
3267
3271
|
}
|
|
3268
3272
|
if (lastComment.value.includes('@ignoreRTI')) {
|
|
3269
3273
|
return;
|
package/index.mjs
CHANGED
|
@@ -2925,8 +2925,12 @@ class Asserter extends Stringifier {
|
|
|
2925
2925
|
if (node.params.length !== 1) {
|
|
2926
2926
|
this.warn("getJSDoc> setters require exactly one argument");
|
|
2927
2927
|
}
|
|
2928
|
+
const setterType = parseJSDocSetter(lastComment.value, this.expandType);
|
|
2929
|
+
if (!setterType) {
|
|
2930
|
+
return;
|
|
2931
|
+
}
|
|
2928
2932
|
return {
|
|
2929
|
-
[paramName]:
|
|
2933
|
+
[paramName]: setterType
|
|
2930
2934
|
};
|
|
2931
2935
|
}
|
|
2932
2936
|
if (lastComment.value.includes('@ignoreRTI')) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"bin": "bin.js",
|
|
3
3
|
"name": "@runtime-type-inspector/transpiler",
|
|
4
|
-
"version": "3.2.
|
|
4
|
+
"version": "3.2.4",
|
|
5
5
|
"description": "Validating JSDoc types at runtime for high-quality types - Trust is good, control is better.",
|
|
6
6
|
"main": "index.cjs",
|
|
7
7
|
"module": "index.mjs",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"homepage": "https://github.com/kungfooman/RuntimeTypeInspector.js#readme",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@babel/parser": "^7.23.0",
|
|
22
|
-
"@runtime-type-inspector/runtime": "^3.2.
|
|
22
|
+
"@runtime-type-inspector/runtime": "^3.2.4",
|
|
23
23
|
"typescript": "^5.1.6"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|