docusaurus-plugin-openapi-docs 0.0.0-1014 → 0.0.0-1016

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,4 @@
1
1
  import type { JSONSchema4, JSONSchema6, JSONSchema7, JSONSchema7TypeName } from "json-schema";
2
- interface Map<T> {
3
- [key: string]: T;
4
- }
5
2
  export interface OpenApiObject {
6
3
  openapi: string;
7
4
  info: InfoObject;
@@ -54,7 +51,7 @@ export interface LicenseObject {
54
51
  export interface ServerObject {
55
52
  url: string;
56
53
  description?: string;
57
- variables?: Map<ServerVariable>;
54
+ variables?: Record<string, ServerVariable>;
58
55
  }
59
56
  export interface ServerVariable {
60
57
  enum?: string[];
@@ -62,29 +59,29 @@ export interface ServerVariable {
62
59
  description?: string;
63
60
  }
64
61
  export interface ComponentsObject {
65
- schemas?: Map<SchemaObject>;
66
- responses?: Map<ResponseObject>;
67
- parameters?: Map<ParameterObject>;
68
- examples?: Map<ExampleObject>;
69
- requestBodies?: Map<RequestBodyObject>;
70
- headers?: Map<HeaderObject>;
71
- securitySchemes?: Map<SecuritySchemeObject>;
72
- links?: Map<LinkObject>;
73
- callbacks?: Map<CallbackObject>;
62
+ schemas?: Record<string, SchemaObject>;
63
+ responses?: Record<string, ResponseObject>;
64
+ parameters?: Record<string, ParameterObject>;
65
+ examples?: Record<string, ExampleObject>;
66
+ requestBodies?: Record<string, RequestBodyObject>;
67
+ headers?: Record<string, HeaderObject>;
68
+ securitySchemes?: Record<string, SecuritySchemeObject>;
69
+ links?: Record<string, LinkObject>;
70
+ callbacks?: Record<string, CallbackObject>;
74
71
  }
75
72
  export interface ComponentsObjectWithRef {
76
- schemas?: Map<SchemaObjectWithRef | ReferenceObject>;
77
- responses?: Map<ResponseObjectWithRef | ReferenceObject>;
78
- parameters?: Map<ParameterObjectWithRef | ReferenceObject>;
79
- examples?: Map<ExampleObject | ReferenceObject>;
80
- requestBodies?: Map<RequestBodyObjectWithRef | ReferenceObject>;
81
- headers?: Map<HeaderObjectWithRef | ReferenceObject>;
82
- securitySchemes?: Map<SecuritySchemeObject | ReferenceObject>;
83
- links?: Map<LinkObject | ReferenceObject>;
84
- callbacks?: Map<CallbackObjectWithRef | ReferenceObject>;
85
- }
86
- export type PathsObject = Map<PathItemObject>;
87
- export type PathsObjectWithRef = Map<PathItemObjectWithRef>;
73
+ schemas?: Record<string, SchemaObjectWithRef | ReferenceObject>;
74
+ responses?: Record<string, ResponseObjectWithRef | ReferenceObject>;
75
+ parameters?: Record<string, ParameterObjectWithRef | ReferenceObject>;
76
+ examples?: Record<string, ExampleObject | ReferenceObject>;
77
+ requestBodies?: Record<string, RequestBodyObjectWithRef | ReferenceObject>;
78
+ headers?: Record<string, HeaderObjectWithRef | ReferenceObject>;
79
+ securitySchemes?: Record<string, SecuritySchemeObject | ReferenceObject>;
80
+ links?: Record<string, LinkObject | ReferenceObject>;
81
+ callbacks?: Record<string, CallbackObjectWithRef | ReferenceObject>;
82
+ }
83
+ export type PathsObject = Record<string, PathItemObject>;
84
+ export type PathsObjectWithRef = Record<string, PathItemObjectWithRef>;
88
85
  export interface PathItemObject {
89
86
  $ref?: string;
90
87
  summary?: string;
@@ -124,7 +121,7 @@ export interface OperationObject {
124
121
  parameters?: ParameterObject[];
125
122
  requestBody?: RequestBodyObject;
126
123
  responses: ResponsesObject;
127
- callbacks?: Map<CallbackObject>;
124
+ callbacks?: Record<string, CallbackObject>;
128
125
  deprecated?: boolean;
129
126
  security?: SecurityRequirementObject[];
130
127
  servers?: ServerObject[];
@@ -140,7 +137,7 @@ export interface OperationObjectWithRef {
140
137
  parameters?: (ParameterObjectWithRef | ReferenceObject)[];
141
138
  requestBody?: RequestBodyObjectWithRef | ReferenceObject;
142
139
  responses: ResponsesObjectWithRef;
143
- callbacks?: Map<CallbackObjectWithRef | ReferenceObject>;
140
+ callbacks?: Record<string, CallbackObjectWithRef | ReferenceObject>;
144
141
  deprecated?: boolean;
145
142
  security?: SecurityRequirementObject[];
146
143
  servers?: ServerObject[];
@@ -162,8 +159,8 @@ export interface ParameterObject {
162
159
  allowReserved?: boolean;
163
160
  schema?: SchemaObject;
164
161
  example?: any;
165
- examples?: Map<ExampleObject>;
166
- content?: Map<MediaTypeObject>;
162
+ examples?: Record<string, ExampleObject>;
163
+ content?: Record<string, MediaTypeObject>;
167
164
  param?: Object;
168
165
  "x-enumDescriptions"?: Record<string, string>;
169
166
  }
@@ -179,62 +176,62 @@ export interface ParameterObjectWithRef {
179
176
  allowReserved?: boolean;
180
177
  schema?: SchemaObjectWithRef | ReferenceObject;
181
178
  example?: any;
182
- examples?: Map<ExampleObject | ReferenceObject>;
183
- content?: Map<MediaTypeObjectWithRef>;
179
+ examples?: Record<string, ExampleObject | ReferenceObject>;
180
+ content?: Record<string, MediaTypeObjectWithRef>;
184
181
  }
185
182
  export interface RequestBodyObject {
186
183
  description?: string;
187
- content: Map<MediaTypeObject>;
184
+ content: Record<string, MediaTypeObject>;
188
185
  required?: boolean;
189
186
  }
190
187
  export interface RequestBodyObjectWithRef {
191
188
  description?: string;
192
- content: Map<MediaTypeObjectWithRef>;
189
+ content: Record<string, MediaTypeObjectWithRef>;
193
190
  required?: boolean;
194
191
  }
195
192
  export interface MediaTypeObject {
196
193
  schema?: SchemaObject;
197
194
  example?: any;
198
- examples?: Map<ExampleObject>;
199
- encoding?: Map<EncodingObject>;
195
+ examples?: Record<string, ExampleObject>;
196
+ encoding?: Record<string, EncodingObject>;
200
197
  type?: any;
201
198
  }
202
199
  export interface MediaTypeObjectWithRef {
203
200
  schema?: SchemaObjectWithRef | ReferenceObject;
204
201
  example?: any;
205
- examples?: Map<ExampleObject | ReferenceObject>;
206
- encoding?: Map<EncodingObjectWithRef>;
202
+ examples?: Record<string, ExampleObject | ReferenceObject>;
203
+ encoding?: Record<string, EncodingObjectWithRef>;
207
204
  }
208
205
  export interface EncodingObject {
209
206
  contentType?: string;
210
- headers?: Map<HeaderObject>;
207
+ headers?: Record<string, HeaderObject>;
211
208
  style?: string;
212
209
  explode?: boolean;
213
210
  allowReserved?: boolean;
214
211
  }
215
212
  export interface EncodingObjectWithRef {
216
213
  contentType?: string;
217
- headers?: Map<HeaderObjectWithRef | ReferenceObject>;
214
+ headers?: Record<string, HeaderObjectWithRef | ReferenceObject>;
218
215
  style?: string;
219
216
  explode?: boolean;
220
217
  allowReserved?: boolean;
221
218
  }
222
- export type ResponsesObject = Map<ResponseObject>;
223
- export type ResponsesObjectWithRef = Map<ResponseObjectWithRef | ReferenceObject>;
219
+ export type ResponsesObject = Record<string, ResponseObject>;
220
+ export type ResponsesObjectWithRef = Record<string, ResponseObjectWithRef | ReferenceObject>;
224
221
  export interface ResponseObject {
225
222
  description: string;
226
- headers?: Map<HeaderObject>;
227
- content?: Map<MediaTypeObject>;
228
- links?: Map<LinkObject>;
223
+ headers?: Record<string, HeaderObject>;
224
+ content?: Record<string, MediaTypeObject>;
225
+ links?: Record<string, LinkObject>;
229
226
  }
230
227
  export interface ResponseObjectWithRef {
231
228
  description: string;
232
- headers?: Map<HeaderObjectWithRef | ReferenceObject>;
233
- content?: Map<MediaTypeObjectWithRef>;
234
- links?: Map<LinkObject | ReferenceObject>;
229
+ headers?: Record<string, HeaderObjectWithRef | ReferenceObject>;
230
+ content?: Record<string, MediaTypeObjectWithRef>;
231
+ links?: Record<string, LinkObject | ReferenceObject>;
235
232
  }
236
- export type CallbackObject = Map<PathItemObject>;
237
- export type CallbackObjectWithRef = Map<PathItemObjectWithRef>;
233
+ export type CallbackObject = Record<string, PathItemObject>;
234
+ export type CallbackObjectWithRef = Record<string, PathItemObjectWithRef>;
238
235
  export interface ExampleObject {
239
236
  summary?: string;
240
237
  description?: string;
@@ -244,7 +241,7 @@ export interface ExampleObject {
244
241
  export interface LinkObject {
245
242
  operationRef?: string;
246
243
  operationId?: string;
247
- parameters?: Map<any>;
244
+ parameters?: Record<string, any>;
248
245
  requestBody?: any;
249
246
  description?: string;
250
247
  server?: ServerObject;
@@ -273,7 +270,7 @@ export type SchemaObject = Omit<JSONSchema, "type" | "allOf" | "oneOf" | "anyOf"
273
270
  anyOf?: SchemaObject[];
274
271
  not?: SchemaObject;
275
272
  items?: SchemaObject;
276
- properties?: Map<SchemaObject>;
273
+ properties?: Record<string, SchemaObject>;
277
274
  additionalProperties?: boolean | SchemaObject;
278
275
  nullable?: boolean;
279
276
  discriminator?: DiscriminatorObject;
@@ -293,7 +290,7 @@ export type SchemaObjectWithRef = Omit<JSONSchema, "type" | "allOf" | "oneOf" |
293
290
  anyOf?: (SchemaObject | ReferenceObject)[];
294
291
  not?: SchemaObject | ReferenceObject;
295
292
  items?: SchemaObject | ReferenceObject;
296
- properties?: Map<SchemaObject | ReferenceObject>;
293
+ properties?: Record<string, SchemaObject | ReferenceObject>;
297
294
  additionalProperties?: boolean | SchemaObject | ReferenceObject;
298
295
  nullable?: boolean;
299
296
  discriminator?: DiscriminatorObject;
@@ -306,7 +303,7 @@ export type SchemaObjectWithRef = Omit<JSONSchema, "type" | "allOf" | "oneOf" |
306
303
  };
307
304
  export interface DiscriminatorObject {
308
305
  propertyName: string;
309
- mapping?: Map<string>;
306
+ mapping?: Record<string, string>;
310
307
  }
311
308
  export interface XMLObject {
312
309
  name?: string;
@@ -350,7 +347,6 @@ export interface OAuthFlowObject {
350
347
  authorizationUrl?: string;
351
348
  tokenUrl?: string;
352
349
  refreshUrl?: string;
353
- scopes: Map<string>;
350
+ scopes: Record<string, string>;
354
351
  }
355
- export type SecurityRequirementObject = Map<string[]>;
356
- export {};
352
+ export type SecurityRequirementObject = Record<string, string[]>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docusaurus-plugin-openapi-docs",
3
3
  "description": "OpenAPI plugin for Docusaurus.",
4
- "version": "0.0.0-1014",
4
+ "version": "0.0.0-1016",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -65,5 +65,5 @@
65
65
  "engines": {
66
66
  "node": ">=14"
67
67
  },
68
- "gitHead": "66c116555c5002e121f65a3db9800bad20ca8ae1"
68
+ "gitHead": "c6ced382c6fb3ee6efd7e1b7b9a11c33355131c5"
69
69
  }
@@ -12,10 +12,6 @@ import type {
12
12
  JSONSchema7TypeName,
13
13
  } from "json-schema";
14
14
 
15
- interface Map<T> {
16
- [key: string]: T;
17
- }
18
-
19
15
  export interface OpenApiObject {
20
16
  openapi: string;
21
17
  info: InfoObject;
@@ -74,7 +70,7 @@ export interface LicenseObject {
74
70
  export interface ServerObject {
75
71
  url: string;
76
72
  description?: string;
77
- variables?: Map<ServerVariable>;
73
+ variables?: Record<string, ServerVariable>;
78
74
  }
79
75
 
80
76
  export interface ServerVariable {
@@ -84,32 +80,32 @@ export interface ServerVariable {
84
80
  }
85
81
 
86
82
  export interface ComponentsObject {
87
- schemas?: Map<SchemaObject>;
88
- responses?: Map<ResponseObject>;
89
- parameters?: Map<ParameterObject>;
90
- examples?: Map<ExampleObject>;
91
- requestBodies?: Map<RequestBodyObject>;
92
- headers?: Map<HeaderObject>;
93
- securitySchemes?: Map<SecuritySchemeObject>;
94
- links?: Map<LinkObject>;
95
- callbacks?: Map<CallbackObject>;
83
+ schemas?: Record<string, SchemaObject>;
84
+ responses?: Record<string, ResponseObject>;
85
+ parameters?: Record<string, ParameterObject>;
86
+ examples?: Record<string, ExampleObject>;
87
+ requestBodies?: Record<string, RequestBodyObject>;
88
+ headers?: Record<string, HeaderObject>;
89
+ securitySchemes?: Record<string, SecuritySchemeObject>;
90
+ links?: Record<string, LinkObject>;
91
+ callbacks?: Record<string, CallbackObject>;
96
92
  }
97
93
 
98
94
  export interface ComponentsObjectWithRef {
99
- schemas?: Map<SchemaObjectWithRef | ReferenceObject>;
100
- responses?: Map<ResponseObjectWithRef | ReferenceObject>;
101
- parameters?: Map<ParameterObjectWithRef | ReferenceObject>;
102
- examples?: Map<ExampleObject | ReferenceObject>;
103
- requestBodies?: Map<RequestBodyObjectWithRef | ReferenceObject>;
104
- headers?: Map<HeaderObjectWithRef | ReferenceObject>;
105
- securitySchemes?: Map<SecuritySchemeObject | ReferenceObject>;
106
- links?: Map<LinkObject | ReferenceObject>;
107
- callbacks?: Map<CallbackObjectWithRef | ReferenceObject>;
95
+ schemas?: Record<string, SchemaObjectWithRef | ReferenceObject>;
96
+ responses?: Record<string, ResponseObjectWithRef | ReferenceObject>;
97
+ parameters?: Record<string, ParameterObjectWithRef | ReferenceObject>;
98
+ examples?: Record<string, ExampleObject | ReferenceObject>;
99
+ requestBodies?: Record<string, RequestBodyObjectWithRef | ReferenceObject>;
100
+ headers?: Record<string, HeaderObjectWithRef | ReferenceObject>;
101
+ securitySchemes?: Record<string, SecuritySchemeObject | ReferenceObject>;
102
+ links?: Record<string, LinkObject | ReferenceObject>;
103
+ callbacks?: Record<string, CallbackObjectWithRef | ReferenceObject>;
108
104
  }
109
105
 
110
- export type PathsObject = Map<PathItemObject>;
106
+ export type PathsObject = Record<string, PathItemObject>;
111
107
 
112
- export type PathsObjectWithRef = Map<PathItemObjectWithRef>;
108
+ export type PathsObjectWithRef = Record<string, PathItemObjectWithRef>;
113
109
 
114
110
  export interface PathItemObject {
115
111
  $ref?: string;
@@ -152,7 +148,7 @@ export interface OperationObject {
152
148
  parameters?: ParameterObject[];
153
149
  requestBody?: RequestBodyObject;
154
150
  responses: ResponsesObject;
155
- callbacks?: Map<CallbackObject>;
151
+ callbacks?: Record<string, CallbackObject>;
156
152
  deprecated?: boolean;
157
153
  security?: SecurityRequirementObject[];
158
154
  servers?: ServerObject[];
@@ -170,7 +166,7 @@ export interface OperationObjectWithRef {
170
166
  parameters?: (ParameterObjectWithRef | ReferenceObject)[];
171
167
  requestBody?: RequestBodyObjectWithRef | ReferenceObject;
172
168
  responses: ResponsesObjectWithRef;
173
- callbacks?: Map<CallbackObjectWithRef | ReferenceObject>;
169
+ callbacks?: Record<string, CallbackObjectWithRef | ReferenceObject>;
174
170
  deprecated?: boolean;
175
171
  security?: SecurityRequirementObject[];
176
172
  servers?: ServerObject[];
@@ -197,9 +193,9 @@ export interface ParameterObject {
197
193
  allowReserved?: boolean;
198
194
  schema?: SchemaObject;
199
195
  example?: any;
200
- examples?: Map<ExampleObject>;
196
+ examples?: Record<string, ExampleObject>;
201
197
  //
202
- content?: Map<MediaTypeObject>;
198
+ content?: Record<string, MediaTypeObject>;
203
199
  param?: Object;
204
200
  // ignoring stylings: matrix, label, form, simple, spaceDelimited,
205
201
  // pipeDelimited and deepObject
@@ -219,43 +215,43 @@ export interface ParameterObjectWithRef {
219
215
  allowReserved?: boolean;
220
216
  schema?: SchemaObjectWithRef | ReferenceObject;
221
217
  example?: any;
222
- examples?: Map<ExampleObject | ReferenceObject>;
218
+ examples?: Record<string, ExampleObject | ReferenceObject>;
223
219
  //
224
- content?: Map<MediaTypeObjectWithRef>;
220
+ content?: Record<string, MediaTypeObjectWithRef>;
225
221
  // ignoring stylings: matrix, label, form, simple, spaceDelimited,
226
222
  // pipeDelimited and deepObject
227
223
  }
228
224
 
229
225
  export interface RequestBodyObject {
230
226
  description?: string;
231
- content: Map<MediaTypeObject>;
227
+ content: Record<string, MediaTypeObject>;
232
228
  required?: boolean;
233
229
  }
234
230
 
235
231
  export interface RequestBodyObjectWithRef {
236
232
  description?: string;
237
- content: Map<MediaTypeObjectWithRef>;
233
+ content: Record<string, MediaTypeObjectWithRef>;
238
234
  required?: boolean;
239
235
  }
240
236
 
241
237
  export interface MediaTypeObject {
242
238
  schema?: SchemaObject;
243
239
  example?: any;
244
- examples?: Map<ExampleObject>;
245
- encoding?: Map<EncodingObject>;
240
+ examples?: Record<string, ExampleObject>;
241
+ encoding?: Record<string, EncodingObject>;
246
242
  type?: any;
247
243
  }
248
244
 
249
245
  export interface MediaTypeObjectWithRef {
250
246
  schema?: SchemaObjectWithRef | ReferenceObject;
251
247
  example?: any;
252
- examples?: Map<ExampleObject | ReferenceObject>;
253
- encoding?: Map<EncodingObjectWithRef>;
248
+ examples?: Record<string, ExampleObject | ReferenceObject>;
249
+ encoding?: Record<string, EncodingObjectWithRef>;
254
250
  }
255
251
 
256
252
  export interface EncodingObject {
257
253
  contentType?: string;
258
- headers?: Map<HeaderObject>;
254
+ headers?: Record<string, HeaderObject>;
259
255
  style?: string;
260
256
  explode?: boolean;
261
257
  allowReserved?: boolean;
@@ -263,35 +259,36 @@ export interface EncodingObject {
263
259
 
264
260
  export interface EncodingObjectWithRef {
265
261
  contentType?: string;
266
- headers?: Map<HeaderObjectWithRef | ReferenceObject>;
262
+ headers?: Record<string, HeaderObjectWithRef | ReferenceObject>;
267
263
  style?: string;
268
264
  explode?: boolean;
269
265
  allowReserved?: boolean;
270
266
  }
271
267
 
272
- export type ResponsesObject = Map<ResponseObject>;
268
+ export type ResponsesObject = Record<string, ResponseObject>;
273
269
 
274
- export type ResponsesObjectWithRef = Map<
270
+ export type ResponsesObjectWithRef = Record<
271
+ string,
275
272
  ResponseObjectWithRef | ReferenceObject
276
273
  >;
277
274
 
278
275
  export interface ResponseObject {
279
276
  description: string;
280
- headers?: Map<HeaderObject>;
281
- content?: Map<MediaTypeObject>;
282
- links?: Map<LinkObject>;
277
+ headers?: Record<string, HeaderObject>;
278
+ content?: Record<string, MediaTypeObject>;
279
+ links?: Record<string, LinkObject>;
283
280
  }
284
281
 
285
282
  export interface ResponseObjectWithRef {
286
283
  description: string;
287
- headers?: Map<HeaderObjectWithRef | ReferenceObject>;
288
- content?: Map<MediaTypeObjectWithRef>;
289
- links?: Map<LinkObject | ReferenceObject>;
284
+ headers?: Record<string, HeaderObjectWithRef | ReferenceObject>;
285
+ content?: Record<string, MediaTypeObjectWithRef>;
286
+ links?: Record<string, LinkObject | ReferenceObject>;
290
287
  }
291
288
 
292
- export type CallbackObject = Map<PathItemObject>;
289
+ export type CallbackObject = Record<string, PathItemObject>;
293
290
 
294
- export type CallbackObjectWithRef = Map<PathItemObjectWithRef>;
291
+ export type CallbackObjectWithRef = Record<string, PathItemObjectWithRef>;
295
292
 
296
293
  export interface ExampleObject {
297
294
  summary?: string;
@@ -303,7 +300,7 @@ export interface ExampleObject {
303
300
  export interface LinkObject {
304
301
  operationRef?: string;
305
302
  operationId?: string;
306
- parameters?: Map<any>;
303
+ parameters?: Record<string, any>;
307
304
  requestBody?: any;
308
305
  description?: string;
309
306
  server?: ServerObject;
@@ -349,7 +346,7 @@ export type SchemaObject = Omit<
349
346
  anyOf?: SchemaObject[];
350
347
  not?: SchemaObject;
351
348
  items?: SchemaObject;
352
- properties?: Map<SchemaObject>;
349
+ properties?: Record<string, SchemaObject>;
353
350
  additionalProperties?: boolean | SchemaObject;
354
351
 
355
352
  // OpenAPI additions
@@ -383,7 +380,7 @@ export type SchemaObjectWithRef = Omit<
383
380
  anyOf?: (SchemaObject | ReferenceObject)[];
384
381
  not?: SchemaObject | ReferenceObject;
385
382
  items?: SchemaObject | ReferenceObject;
386
- properties?: Map<SchemaObject | ReferenceObject>;
383
+ properties?: Record<string, SchemaObject | ReferenceObject>;
387
384
  additionalProperties?: boolean | SchemaObject | ReferenceObject;
388
385
 
389
386
  // OpenAPI additions
@@ -399,7 +396,7 @@ export type SchemaObjectWithRef = Omit<
399
396
 
400
397
  export interface DiscriminatorObject {
401
398
  propertyName: string;
402
- mapping?: Map<string>;
399
+ mapping?: Record<string, string>;
403
400
  }
404
401
 
405
402
  export interface XMLObject {
@@ -455,7 +452,7 @@ export interface OAuthFlowObject {
455
452
  authorizationUrl?: string; // required for some
456
453
  tokenUrl?: string; // required for some
457
454
  refreshUrl?: string;
458
- scopes: Map<string>;
455
+ scopes: Record<string, string>;
459
456
  }
460
457
 
461
- export type SecurityRequirementObject = Map<string[]>;
458
+ export type SecurityRequirementObject = Record<string, string[]>;
@@ -5,10 +5,11 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  * ========================================================================== */
7
7
 
8
+ import type { TOCItem } from "@docusaurus/mdx-loader";
9
+ import type { VersionBanner } from "@docusaurus/plugin-content-docs";
8
10
  import type { FrontMatter as DocsFrontMatter } from "@docusaurus/types";
9
11
  import type { Props as DocsProps } from "@docusaurus/types";
10
12
 
11
- // TODO: figure out how to import this
12
13
  declare module "docusaurus-plugin-openapi-docs" {
13
14
  import type { PropSidebars } from "@docusaurus/plugin-content-docs-types";
14
15
 
@@ -77,7 +78,7 @@ declare module "@theme/ApiItem" {
77
78
  readonly frontMatter: FrontMatter;
78
79
  readonly metadata: Metadata;
79
80
  readonly contentTitle: string | undefined;
80
- readonly toc: array | undefined;
81
+ readonly toc: readonly TOCItem[] | undefined;
81
82
  (): JSX.Element;
82
83
  };
83
84
  }