File tree 2 files changed +57
-0
lines changed 2 files changed +57
-0
lines changed Original file line number Diff line number Diff line change @@ -5733,6 +5733,30 @@ class SomeType {}
5733
5733
*/
5734
5734
function quux () {}
5735
5735
// Settings: {" jsdoc" :{" mode" :" closure" }}
5736
+
5737
+ import {myTypesA} from '../internal/file.js'; // ERROR
5738
+ import {myTypesB} from '../internal/file.js'; // NO ERROR
5739
+
5740
+ /**
5741
+ * @typedef newType
5742
+ * @property {myTypesA.someType} someProp - Some prop.
5743
+ */
5744
+
5745
+ /**
5746
+ * @param {newType} arg - Arg.
5747
+ */
5748
+ function myFunctionA(arg) {
5749
+ return arg;
5750
+ }
5751
+
5752
+ /**
5753
+ * @param {myTypesB.someType} arg - Arg.
5754
+ */
5755
+ function myFunctionB(arg) {
5756
+ return arg;
5757
+ }
5758
+
5759
+ export {myFunctionA, myFunctionB};
5736
5760
````
5737
5761
5738
5762
Original file line number Diff line number Diff line change @@ -705,5 +705,38 @@ export default {
705
705
} ,
706
706
} ,
707
707
} ,
708
+ {
709
+ code : `
710
+ import {myTypesA} from '../internal/file.js'; // ERROR
711
+ import {myTypesB} from '../internal/file.js'; // NO ERROR
712
+
713
+ /**
714
+ * @typedef newType
715
+ * @property {myTypesA.someType} someProp - Some prop.
716
+ */
717
+
718
+ /**
719
+ * @param {newType} arg - Arg.
720
+ */
721
+ function myFunctionA(arg) {
722
+ return arg;
723
+ }
724
+
725
+ /**
726
+ * @param {myTypesB.someType} arg - Arg.
727
+ */
728
+ function myFunctionB(arg) {
729
+ return arg;
730
+ }
731
+
732
+ export {myFunctionA, myFunctionB};
733
+ ` ,
734
+ parserOptions : {
735
+ sourceType : 'module' ,
736
+ } ,
737
+ rules : {
738
+ 'no-unused-vars' : [ 'error' ] ,
739
+ } ,
740
+ } ,
708
741
] ,
709
742
} ;
You can’t perform that action at this time.
0 commit comments