Merge remote-tracking branch 'upstream/development' into sol-doc
This commit is contained in:
@@ -135,14 +135,19 @@ function renderTypeParameter(
|
||||
): React.ReactNode {
|
||||
const typeParam = (
|
||||
<span>
|
||||
{`<${typeParameter.name} extends `}
|
||||
<Type
|
||||
type={typeParameter.type}
|
||||
sectionName={sectionName}
|
||||
typeDefinitionByName={typeDefinitionByName}
|
||||
docsInfo={docsInfo}
|
||||
isInPopover={isInPopover}
|
||||
/>
|
||||
{`<${typeParameter.name}`}
|
||||
{!_.isUndefined(typeParameter.type) && (
|
||||
<span>
|
||||
{' extends '}
|
||||
<Type
|
||||
type={typeParameter.type}
|
||||
sectionName={sectionName}
|
||||
typeDefinitionByName={typeDefinitionByName}
|
||||
docsInfo={docsInfo}
|
||||
isInPopover={isInPopover}
|
||||
/>
|
||||
</span>
|
||||
)}
|
||||
{`>`}
|
||||
</span>
|
||||
);
|
||||
|
@@ -419,7 +419,10 @@ export class TypeDocUtils {
|
||||
return func;
|
||||
}
|
||||
private _convertTypeParameter(entity: TypeDocNode, sectionName: string): TypeParameter {
|
||||
const type = this._convertType(entity.type, sectionName);
|
||||
let type;
|
||||
if (!_.isUndefined(entity.type)) {
|
||||
type = this._convertType(entity.type, sectionName);
|
||||
}
|
||||
const parameter = {
|
||||
name: entity.name,
|
||||
type,
|
||||
|
Reference in New Issue
Block a user