We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4683cae commit 7a94141Copy full SHA for 7a94141
src/loader/babel.ts
@@ -39,7 +39,7 @@ const babelPluginUntyped: PluginItem = function (
39
}
40
},
41
ObjectProperty(p) {
42
- if (p.node.leadingComments) {
+ if (p.node.leadingComments && p.node.leadingComments.length > 0) {
43
const schema = parseJSDocs(
44
p.node.leadingComments
45
.filter((c) => c.type === "CommentBlock")
test/loader.test.ts
@@ -25,7 +25,7 @@ describe("loader", () => {
25
"description": "",
26
"id": "#config/checked",
27
"tags": [],
28
- "title": "",
+ "title": "checked status",
29
"type": "boolean",
30
31
0 commit comments