File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -424,6 +424,13 @@ const isExportedIdentifier = identifier => {
424
424
return identifier . parent . parent . type === 'ExportNamedDeclaration' ;
425
425
}
426
426
427
+ if (
428
+ identifier . parent . type === 'TSTypeAliasDeclaration' &&
429
+ identifier . parent . id === identifier
430
+ ) {
431
+ return identifier . parent . parent . type === 'ExportNamedDeclaration' ;
432
+ }
433
+
427
434
return false ;
428
435
} ;
429
436
Original file line number Diff line number Diff line change @@ -1827,6 +1827,12 @@ runTest.typescript({
1827
1827
errors : 1
1828
1828
} ,
1829
1829
1830
+ // #1102
1831
+ noFixingTestCase ( {
1832
+ code : 'export type Props = string' ,
1833
+ errors : createErrors ( )
1834
+ } ) ,
1835
+
1830
1836
// #347
1831
1837
{
1832
1838
code : outdent `
@@ -1858,7 +1864,7 @@ runTest.typescript({
1858
1864
export type PreloadProps<TExtraProps = null> = {}
1859
1865
` ,
1860
1866
output : outdent `
1861
- export type PreloadProperties <TExtraProperties = null> = {}
1867
+ export type PreloadProps <TExtraProperties = null> = {}
1862
1868
` ,
1863
1869
errors : [ ...createErrors ( ) , ...createErrors ( ) ]
1864
1870
}
You can’t perform that action at this time.
0 commit comments