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 @@ -415,6 +415,8 @@ const convertDocsToMDX = async (
415
415
doc . example = correctRelativeLinksToExampleAssets (
416
416
doc . example ,
417
417
) as string [ ] ;
418
+ // @ts -ignore
419
+ doc . deprecated = doc . deprecated ? ( doc . deprecationMessage ?? true ) : undefined ;
418
420
const mdx = await convertToMDX ( doc ) ;
419
421
420
422
return mdx ? { mdx, savePath, name : doc . name } : null ;
Original file line number Diff line number Diff line change @@ -93,7 +93,8 @@ interface Chainable {
93
93
}
94
94
95
95
interface 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
+ deprecatedMessage ?: string ; // If this item is deprecated, a description of why.
97
98
}
98
99
99
100
/* Represents the return value of a method or constructor */
You can’t perform that action at this time.
0 commit comments