@@ -4576,15 +4576,21 @@ let a;
4576
4576
// "jsdoc/check-tag-names": ["error"|"warn", {"typed":true}]
4577
4577
// Message: '@type' is redundant when using a type system.
4578
4578
4579
- /** @abstract */
4579
+ /** @type {string} - extra info */
4580
4580
let a;
4581
4581
// "jsdoc/check-tag-names": ["error"|"warn", {"typed":true}]
4582
- // Message: '@abstract ' is generally redundant outside of `declare` contexts when using a type system.
4582
+ // Message: '@type ' is redundant when using a type system.
4583
4583
4584
- const a = {
4585
- /** @abstract */
4586
- b: true,
4587
- };
4584
+ /**
4585
+ * Existing comment.
4586
+ * @type {string}
4587
+ */
4588
+ let a;
4589
+ // "jsdoc/check-tag-names": ["error"|"warn", {"typed":true}]
4590
+ // Message: '@type' is redundant when using a type system.
4591
+
4592
+ /** @abstract */
4593
+ let a;
4588
4594
// "jsdoc/check-tag-names": ["error"|"warn", {"typed":true}]
4589
4595
// Message: '@abstract' is generally redundant outside of `declare` contexts when using a type system.
4590
4596
@@ -4612,6 +4618,14 @@ function takesOne(param) {}
4612
4618
// "jsdoc/check-tag-names": ["error"|"warn", {"typed":true}]
4613
4619
// Message: '@param' without a description is redundant when using a type system.
4614
4620
4621
+ /**
4622
+ * Existing comment
4623
+ * @param {boolean} param
4624
+ */
4625
+ function takesOne(param) {}
4626
+ // "jsdoc/check-tag-names": ["error"|"warn", {"typed":true}]
4627
+ // Message: '@param' without a description is redundant when using a type system.
4628
+
4615
4629
/** @param {boolean} param - takes description */
4616
4630
function takesOne(param) {}
4617
4631
// "jsdoc/check-tag-names": ["error"|"warn", {"typed":true}]
0 commit comments