File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -431,6 +431,13 @@ const isExportedIdentifier = identifier => {
431431 return identifier . parent . parent . type === 'ExportNamedDeclaration' ;
432432 }
433433
434+ if (
435+ identifier . parent . type === 'TypeAlias' &&
436+ identifier . parent . id === identifier
437+ ) {
438+ return identifier . parent . parent . type === 'ExportNamedDeclaration' ;
439+ }
440+
434441 return false ;
435442} ;
436443
Original file line number Diff line number Diff line change @@ -1880,7 +1880,7 @@ runTest.babelLegacy({
18801880 export type PreloadProps<TExtraProps = null> = {};
18811881 ` ,
18821882 output : outdent `
1883- export type PreloadProperties <TExtraProperties = null> = {};
1883+ export type PreloadProps <TExtraProperties = null> = {};
18841884 ` ,
18851885 errors : [ ...createErrors ( ) , ...createErrors ( ) ]
18861886 }
You can’t perform that action at this time.
0 commit comments