File tree 3 files changed +14
-1
lines changed
3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -430,5 +430,10 @@ function quux (foo) {
430
430
/**
431
431
* @import * as Linters from "eslint"
432
432
*/
433
+
434
+ /** @import { ReactNode } from 'react' */
435
+
436
+ /** @type {ReactNode} */
437
+ export const TEST = null
433
438
````
434
439
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ export default iterateJsdoc(({
174
174
? `${ typePart } ${ name } ${ description } `
175
175
: `${ typePart } ${ name } ` ) ;
176
176
177
- const importsExports = parseImportsExports ( imprt ) ;
177
+ const importsExports = parseImportsExports ( imprt . trim ( ) ) ;
178
178
179
179
if ( importsExports . errors ) {
180
180
report (
Original file line number Diff line number Diff line change @@ -631,5 +631,13 @@ export default /** @type {import('../index.js').TestCases} */ ({
631
631
*/
632
632
` ,
633
633
} ,
634
+ {
635
+ code : `
636
+ /** @import { ReactNode } from 'react' */
637
+
638
+ /** @type {ReactNode} */
639
+ export const TEST = null
640
+ ` ,
641
+ } ,
634
642
] ,
635
643
} ) ;
You can’t perform that action at this time.
0 commit comments