@docusaurus/types 0.0.0-4620 → 0.0.0-4623

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.d.ts +2 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/types",
3
- "version": "0.0.0-4620",
3
+ "version": "0.0.0-4623",
4
4
  "description": "Common types for Docusaurus packages.",
5
5
  "types": "./src/index.d.ts",
6
6
  "publishConfig": {
@@ -23,5 +23,5 @@
23
23
  "webpack": "^5.69.1",
24
24
  "webpack-merge": "^5.8.0"
25
25
  },
26
- "gitHead": "21930f0c569b3c2fe2fc5d0ec67c544dc795d9c6"
26
+ "gitHead": "97710505efdb9fceea33bd2dbb8eaa2860e391a1"
27
27
  }
package/src/index.d.ts CHANGED
@@ -392,18 +392,6 @@ export interface ConfigureWebpackUtils {
392
392
  isServer: boolean;
393
393
  babelOptions?: Record<string, unknown>;
394
394
  }) => RuleSetRule;
395
-
396
- // TODO deprecated: remove before end of 2021?
397
- getCacheLoader: (
398
- isServer: boolean,
399
- cacheOptions?: Record<string, unknown>,
400
- ) => RuleSetRule | null;
401
-
402
- // TODO deprecated: remove before end of 2021?
403
- getBabelLoader: (
404
- isServer: boolean,
405
- options?: Record<string, unknown>,
406
- ) => RuleSetRule;
407
395
  }
408
396
 
409
397
  interface HtmlTagObject {
@@ -441,12 +429,11 @@ export interface ThemeConfigValidationContext<T> {
441
429
  themeConfig: Partial<T>;
442
430
  }
443
431
 
444
- export interface TOCItem {
432
+ export type TOCItem = {
445
433
  readonly value: string;
446
434
  readonly id: string;
447
- readonly children: TOCItem[];
448
435
  readonly level: number;
449
- }
436
+ };
450
437
 
451
438
  export type RouteChunksTree = {[x: string | number]: string | RouteChunksTree};
452
439