Skip to content

Commit a657d78

Browse files
authored
fix types for plugin openapi (#1174)
1 parent f7fdb32 commit a657d78

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
* LICENSE file in the root directory of this source tree.
66
* ========================================================================== */
77

8+
import type { TOCItem } from "@docusaurus/mdx-loader";
9+
import type { VersionBanner } from "@docusaurus/plugin-content-docs";
810
import type { FrontMatter as DocsFrontMatter } from "@docusaurus/types";
911
import type { Props as DocsProps } from "@docusaurus/types";
1012

11-
// TODO: figure out how to import this
1213
declare module "docusaurus-plugin-openapi-docs" {
1314
import type { PropSidebars } from "@docusaurus/plugin-content-docs-types";
1415

@@ -77,7 +78,7 @@ declare module "@theme/ApiItem" {
7778
readonly frontMatter: FrontMatter;
7879
readonly metadata: Metadata;
7980
readonly contentTitle: string | undefined;
80-
readonly toc: array | undefined;
81+
readonly toc: readonly TOCItem[] | undefined;
8182
(): JSX.Element;
8283
};
8384
}

0 commit comments

Comments
 (0)