Skip to content

Commit 343e2ac

Browse files
committed
Update types
1 parent b1336d1 commit 343e2ac

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/scripts/builders/reference.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,7 @@ const convertDocsToMDX = async (
415415
doc.example = correctRelativeLinksToExampleAssets(
416416
doc.example,
417417
) as string[];
418-
// @ts-ignore
419-
doc.deprecated = doc.deprecated ? (doc.deprecationMessage ?? true) : undefined;
418+
doc.deprecated = (doc.deprecated ? (doc.deprecationMessage ?? true) : undefined) as any;
420419
const mdx = await convertToMDX(doc);
421420

422421
return mdx ? { mdx, savePath, name: doc.name } : null;

types/parsers.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ interface Chainable {
9494

9595
interface Deprecatable {
9696
deprecated?: boolean; // If this item is deprecated, a description of why.
97-
deprecatedMessage?: string; // If this item is deprecated, a description of why.
97+
deprecationMessage?: string; // If this item is deprecated, a description of why.
9898
}
9999

100100
/* Represents the return value of a method or constructor */

0 commit comments

Comments
 (0)