File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -430,5 +430,10 @@ function quux (foo) {
430430/**
431431 * @import * as Linters from "eslint"
432432 */
433+
434+ /** @import { ReactNode } from 'react' */
435+
436+ /** @type {ReactNode} */
437+ export const TEST = null
433438````
434439
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ export default iterateJsdoc(({
174174 ? `${ typePart } ${ name } ${ description } `
175175 : `${ typePart } ${ name } ` ) ;
176176
177- const importsExports = parseImportsExports ( imprt ) ;
177+ const importsExports = parseImportsExports ( imprt . trim ( ) ) ;
178178
179179 if ( importsExports . errors ) {
180180 report (
Original file line number Diff line number Diff line change @@ -631,5 +631,13 @@ export default /** @type {import('../index.js').TestCases} */ ({
631631 */
632632 ` ,
633633 } ,
634+ {
635+ code : `
636+ /** @import { ReactNode } from 'react' */
637+
638+ /** @type {ReactNode} */
639+ export const TEST = null
640+ ` ,
641+ } ,
634642 ] ,
635643} ) ;
You can’t perform that action at this time.
0 commit comments