File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -354,7 +354,7 @@ function convertTypeParameters(
354
354
const variance = getVariance ( declaration ?. modifiers ) ;
355
355
356
356
const paramRefl = new TypeParameterReflection (
357
- param . symbol ? .name || "__type" ,
357
+ param . symbol . name ,
358
358
parent ,
359
359
variance ,
360
360
) ;
Original file line number Diff line number Diff line change @@ -602,7 +602,7 @@ function convertClassOrInterface(
602
602
// And type arguments
603
603
if ( instanceType . typeParameters ) {
604
604
reflection . typeParameters = instanceType . typeParameters . map ( ( param ) => {
605
- const declaration = param . symbol ? .declarations ?. [ 0 ] ;
605
+ const declaration = param . symbol . declarations ?. [ 0 ] ;
606
606
assert ( declaration && ts . isTypeParameterDeclaration ( declaration ) ) ;
607
607
return createTypeParamReflection ( declaration , reflectionContext ) ;
608
608
} ) ;
Original file line number Diff line number Diff line change @@ -838,7 +838,7 @@ const mappedConverter: TypeConverter<
838
838
const templateType = convertType ( context , type . templateType ) ;
839
839
840
840
return new MappedType (
841
- type . typeParameter . symbol ? .name || "__type" ,
841
+ type . typeParameter . symbol . name || "__type" ,
842
842
convertType ( context , type . typeParameter . getConstraint ( ) ) ,
843
843
optionalModifier === "+"
844
844
? removeUndefined ( templateType )
You can’t perform that action at this time.
0 commit comments