@@ -1396,6 +1396,15 @@ String | **string** | **string** | `("test") instanceof String` -> **`false`**
1396
1396
The following patterns are considered problems:
1397
1397
1398
1398
```` js
1399
+ /**
1400
+ * @param {abc} foo
1401
+ */
1402
+ function quux (foo ) {
1403
+
1404
+ }
1405
+ // Settings: {"jsdoc":{"preferredTypes":{"abc":100}}}
1406
+ // Message: Invalid `settings.jsdoc.preferredTypes`. Values must be falsy, a string, or an object.
1407
+
1399
1408
/**
1400
1409
* @param {Number} foo
1401
1410
*/
@@ -2694,6 +2703,26 @@ An option object may have the following keys:
2694
2703
The following patterns are considered problems:
2695
2704
2696
2705
```` js
2706
+ /**
2707
+ * @param {HerType} baz - Foo.
2708
+ */
2709
+ function quux (foo , bar , baz ) {
2710
+
2711
+ }
2712
+ // Settings: {"jsdoc":{"preferredTypes":{"HerType":1000}}}
2713
+ // Options: [{"preferredTypesDefined":true}]
2714
+ // Message: Invalid `settings.jsdoc.preferredTypes`. Values must be falsy, a string, or an object.
2715
+
2716
+ /**
2717
+ * @param {HerType} baz - Foo.
2718
+ */
2719
+ function quux (foo , bar , baz ) {
2720
+
2721
+ }
2722
+ // Settings: {"jsdoc":{"preferredTypes":{"HerType":false}}}
2723
+ // Options: [{"preferredTypesDefined":true}]
2724
+ // Message: The type 'HerType' is undefined.
2725
+
2697
2726
/**
2698
2727
* @param {strnig} foo - Bar.
2699
2728
*/
@@ -2846,6 +2875,15 @@ function foo () {
2846
2875
2847
2876
}
2848
2877
2878
+ /**
2879
+ *
2880
+ *
2881
+ */
2882
+ function foo () {
2883
+
2884
+ }
2885
+ // Options: [{"preferredTypesDefined":true}]
2886
+
2849
2887
/**
2850
2888
* @param {MyType} foo - Bar.
2851
2889
* @param {HisType} bar - Foo.
@@ -4830,6 +4868,18 @@ function quux () {
4830
4868
4831
4869
}
4832
4870
// Options: [{"exemptedBy":["type"]}]
4871
+
4872
+ /**
4873
+ * @override
4874
+ */
4875
+ var A = class {
4876
+ /**
4877
+ *
4878
+ */
4879
+ quux (foo ) {
4880
+
4881
+ }
4882
+ }
4833
4883
` ` ` `
4834
4884
4835
4885
0 commit comments