File tree 1 file changed +15
-19
lines changed 1 file changed +15
-19
lines changed Original file line number Diff line number Diff line change @@ -25,25 +25,21 @@ export class ExportConverter extends ConverterNodeComponent<ts.ExportAssignment>
25
25
}
26
26
if ( symbol && symbol . declarations ) {
27
27
const project = context . project ;
28
- // if the symbol declarations are undefined due to an export, we skip it
29
- // fixes https://github.com/TypeStrong/typedoc/issues/513
30
- if ( symbol . declarations ) {
31
- symbol . declarations . forEach ( ( declaration ) => {
32
- if ( ! declaration . symbol ) {
33
- return ;
34
- }
35
- const id = project . symbolMapping [ context . getSymbolID ( declaration . symbol ) ] ;
36
- if ( ! id ) {
37
- return ;
38
- }
39
-
40
- const reflection = project . reflections [ id ] ;
41
- if ( node . isExportEquals && reflection instanceof DeclarationReflection ) {
42
- ( < DeclarationReflection > reflection ) . setFlag ( ReflectionFlag . ExportAssignment , true ) ;
43
- }
44
- markAsExported ( reflection ) ;
45
- } ) ;
46
- }
28
+ symbol . declarations . forEach ( ( declaration ) => {
29
+ if ( ! declaration . symbol ) {
30
+ return ;
31
+ }
32
+ const id = project . symbolMapping [ context . getSymbolID ( declaration . symbol ) ] ;
33
+ if ( ! id ) {
34
+ return ;
35
+ }
36
+
37
+ const reflection = project . reflections [ id ] ;
38
+ if ( node . isExportEquals && reflection instanceof DeclarationReflection ) {
39
+ ( < DeclarationReflection > reflection ) . setFlag ( ReflectionFlag . ExportAssignment , true ) ;
40
+ }
41
+ markAsExported ( reflection ) ;
42
+ } ) ;
47
43
}
48
44
49
45
function markAsExported ( reflection : Reflection ) {
You can’t perform that action at this time.
0 commit comments