File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -415,6 +415,7 @@ const convertDocsToMDX = async (
415415 doc . example = correctRelativeLinksToExampleAssets (
416416 doc . example ,
417417 ) as string [ ] ;
418+ doc . deprecated = ( doc . deprecated ? ( doc . deprecationMessage ?? true ) : undefined ) as any ;
418419 const mdx = await convertToMDX ( doc ) ;
419420
420421 return mdx ? { mdx, savePath, name : doc . name } : null ;
Original file line number Diff line number Diff line change @@ -93,7 +93,8 @@ interface Chainable {
9393}
9494
9595interface Deprecatable {
96- deprecated ?: string ; // If this item is deprecated, a description of why.
96+ deprecated ?: boolean ; // If this item is deprecated, a description of why.
97+ deprecationMessage ?: string ; // If this item is deprecated, a description of why.
9798}
9899
99100/* Represents the return value of a method or constructor */
You can’t perform that action at this time.
0 commit comments