Skip to content

Commit

Permalink
Add declaration for useDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
sserrata committed Nov 9, 2022
1 parent fd1266b commit 404ccb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/docusaurus-theme-openapi-docs/src/theme-classic.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@
* ========================================================================== */

/// <reference types="@docusaurus/theme-classic" />

declare module "@docusaurus/theme-common/internal" {
function useDoc(): any;
export const { useDoc };
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import React from "react";

import { useWindowSize } from "@docusaurus/theme-common";
// @ts-ignore
import { useDoc } from "@docusaurus/theme-common/internal";
import DocBreadcrumbs from "@theme/DocBreadcrumbs";
import DocItemContent from "@theme/DocItem/Content";
Expand Down

0 comments on commit 404ccb0

Please sign in to comment.