File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ interface ApiCommentProps {
1010export const ApiComment = ( { apiComment, codeBlock } : ApiCommentProps ) => {
1111 if ( ! apiComment ) return null ;
1212 const firstItem = apiComment [ 0 ] ;
13- if ( ! firstItem . text . replaceAll ( '-' , '' ) . trim ( ) ) {
13+ if ( ! firstItem ? .text ? .replaceAll ( '-' , '' ) ? .trim ( ) ) {
1414 apiComment . shift ( ) ;
1515 }
1616 const commentList = apiComment . map ( ( snippet , idx ) => {
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export interface LinkDataType {
77 kind : number ;
88 type : string | LinkDataType ;
99 target : number ;
10+ value : string ;
1011}
1112
1213export interface TypeLinkInterface {
@@ -34,6 +35,8 @@ export const TypeLink = ({ linkData, breadCrumbs }: TypeLinkInterface) => {
3435 ( linkData . type === 'reference' && typeof linkData . target !== 'number' )
3536 ) {
3637 return < View as = "span" > { linkData . name } </ View > ;
38+ } else if ( linkData . type === 'literal' ) {
39+ return < View as = "span" > { linkData . value } </ View > ;
3740 } else {
3841 return (
3942 < button className = { className } onClick = { onClickHandler } >
You can’t perform that action at this time.
0 commit comments