File tree Expand file tree Collapse file tree 4 files changed +11
-81
lines changed
docusaurus-plugin-openapi-docs/src
docusaurus-theme-openapi-docs/src Expand file tree Collapse file tree 4 files changed +11
-81
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import type { FrontMatter as DocsFrontMatter } from "@docusaurus/types";
11
11
import type { Props as DocsProps } from "@docusaurus/types" ;
12
12
13
13
declare module "docusaurus-plugin-openapi-docs" {
14
- import type { PropSidebars } from "@docusaurus/plugin-content-docs- types" ;
14
+ import type { PropSidebars } from "@docusaurus/plugin-content-docs/lib/sidebars/ types" ;
15
15
16
16
export type Options = Partial < import ( "./types" ) . APIOptions > ;
17
17
Original file line number Diff line number Diff line change 5
5
* LICENSE file in the root directory of this source tree.
6
6
* ========================================================================== */
7
7
8
- import { SidebarItemDoc } from "@docusaurus/plugin-content-docs/src /sidebars/types" ;
8
+ import type { SidebarItemDoc } from "@docusaurus/plugin-content-docs/lib /sidebars/types" ;
9
9
import Request from "postman-collection" ;
10
10
11
11
import {
@@ -21,7 +21,7 @@ export type {
21
21
SidebarItemLink ,
22
22
PropSidebar ,
23
23
PropSidebarItem ,
24
- } from "@docusaurus/plugin-content-docs- types" ;
24
+ } from "@docusaurus/plugin-content-docs/lib/sidebars/ types" ;
25
25
export interface PluginOptions {
26
26
id ?: string ;
27
27
docsPlugin ?: string ;
Original file line number Diff line number Diff line change 7
7
8
8
/// <reference types="docusaurus-plugin-openapi-docs" />
9
9
10
- /* eslint-disable @typescript-eslint/no-use-before-define */
10
+ export type {
11
+ PropSidebarItemCategory ,
12
+ SidebarItemLink ,
13
+ PropSidebar ,
14
+ PropSidebarItem ,
15
+ PropSidebars ,
16
+ } from "@docusaurus/plugin-content-docs/lib/sidebars/types" ;
11
17
12
- declare module "@docusaurus/plugin-content-docs-types" {
13
- // Makes all properties visible when hovering over the type
14
- type Expand < T extends Record < string , unknown > > = { [ P in keyof T ] : T [ P ] } ;
15
-
16
- export type SidebarItemBase = {
17
- className ?: string ;
18
- customProps ?: Record < string , unknown > ;
19
- } ;
20
-
21
- export type SidebarItemLink = SidebarItemBase & {
22
- type : "link" ;
23
- href : string ;
24
- label : string ;
25
- docId : string ;
26
- } ;
27
-
28
- type SidebarItemCategoryBase = SidebarItemBase & {
29
- type : "category" ;
30
- label : string ;
31
- collapsed : boolean ;
32
- collapsible : boolean ;
33
- } ;
34
-
35
- export type PropSidebarItemCategory = Expand <
36
- SidebarItemCategoryBase & {
37
- items : PropSidebarItem [ ] ;
38
- }
39
- > ;
40
-
41
- export type PropSidebarItem = SidebarItemLink | PropSidebarItemCategory ;
42
- export type PropSidebar = PropSidebarItem [ ] ;
43
- export type PropSidebars = {
44
- [ sidebarId : string ] : PropSidebar ;
45
- } ;
46
- }
18
+ /* eslint-disable @typescript-eslint/no-use-before-define */
47
19
48
20
declare module "docusaurus-theme-openapi-docs" {
49
21
export type ThemeConfig = Partial < import ( "./types" ) . ThemeConfig > ;
You can’t perform that action at this time.
0 commit comments