File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,12 @@ export class ClassConverter extends ConverterNodeComponent<ts.ClassDeclaration>
69
69
const typesToInheritFrom : ts . Type [ ] = type . isIntersection ( ) ? type . types : [ type ] ;
70
70
71
71
typesToInheritFrom . forEach ( ( typeToInheritFrom : ts . Type ) => {
72
- typeToInheritFrom . symbol && typeToInheritFrom . symbol . declarations . forEach ( ( declaration ) => {
72
+ // TODO: The TS declaration file claims that:
73
+ // 1. type.symbol is non-nullable
74
+ // 2. symbol.declarations is non-nullable
75
+ // These are both incorrect, GH#1207 for #2 and existing tests for #1.
76
+ // Figure out why this is the case and document.
77
+ typeToInheritFrom . symbol ?. declarations ?. forEach ( ( declaration ) => {
73
78
context . inherit ( declaration , baseType . typeArguments ) ;
74
79
} ) ;
75
80
} ) ;
You can’t perform that action at this time.
0 commit comments