Skip to content

Commit 3b9a023

Browse files
committed
Fix more type issues
1 parent 1de6fff commit 3b9a023

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

packages/docusaurus-plugin-openapi/src/docs/docs.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ async function doProcessDocMetadata({
170170
sidebarPosition,
171171
frontMatter,
172172
unlisted,
173+
lastUpdatedAt: undefined,
174+
lastUpdatedBy: undefined,
173175
};
174176
}
175177

packages/docusaurus-theme-openapi/src/theme/ApiDemoPanel/Authorization/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import styles from "../styles.module.css";
1818

1919
type Props = {
2020
mode: "locked" | "unlocked";
21-
} & JSX.IntrinsicElements["button"];
21+
} & React.ButtonHTMLAttributes<HTMLButtonElement>;
2222

2323
function LockButton({ mode, children, style, ...rest }: Props) {
2424
return (

packages/docusaurus-theme-openapi/src/theme/ApiItem/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if (ExecutionEnvironment.canUseDOM) {
2020
ApiDemoPanel = require("@theme/ApiDemoPanel").default;
2121
}
2222

23-
function ApiItem(props: Props): JSX.Element {
23+
function ApiItem(props: Props): React.ReactElement {
2424
const { content: ApiContent } = props;
2525
const { metadata, frontMatter } = ApiContent;
2626
const { image, keywords } = frontMatter;

packages/docusaurus-theme-openapi/src/theme/ApiPage/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function ApiPageContent({
7373
currentApiRoute,
7474
apiMetadata,
7575
children,
76-
}: ApiPageContentProps): JSX.Element {
76+
}: ApiPageContentProps): React.ReactElement {
7777
const sidebar = getSidebar({ currentApiRoute, apiMetadata });
7878

7979
const [hiddenSidebarContainer, setHiddenSidebarContainer] = useState(false);
@@ -164,7 +164,7 @@ function ApiPageContent({
164164
);
165165
}
166166

167-
function ApiPage(props: Props): JSX.Element {
167+
function ApiPage(props: Props): React.ReactElement {
168168
const {
169169
route: { routes: apiRoutes },
170170
apiMetadata,

0 commit comments

Comments
 (0)