@runtime-type-inspector/transpiler 3.3.0 → 3.3.1
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 +3 -0
- package/index.mjs +3 -0
- package/package.json +2 -2
package/index.cjs
CHANGED
package/index.mjs
CHANGED
|
@@ -3132,6 +3132,9 @@ class Asserter extends Stringifier {
|
|
|
3132
3132
|
}
|
|
3133
3133
|
const templates = parseJSDocTemplates(comment);
|
|
3134
3134
|
const params = parseJSDoc(comment, this.expandType);
|
|
3135
|
+
if (!templates && !params) {
|
|
3136
|
+
return;
|
|
3137
|
+
}
|
|
3135
3138
|
return {
|
|
3136
3139
|
templates,
|
|
3137
3140
|
params
|
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.3.
|
|
4
|
+
"version": "3.3.1",
|
|
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.3.
|
|
22
|
+
"@runtime-type-inspector/runtime": "^3.3.1",
|
|
23
23
|
"typescript": "^5.1.6"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|