File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/docusaurus-plugin-openapi-docs/src Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 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" ;
810import type { FrontMatter as DocsFrontMatter } from "@docusaurus/types" ;
911import type { Props as DocsProps } from "@docusaurus/types" ;
1012
11- // TODO: figure out how to import this
1213declare 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 }
You can’t perform that action at this time.
0 commit comments