@docusaurus/plugin-content-pages 0.0.0-4769 → 0.0.0-4772

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.
@@ -5,4 +5,6 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import type { FrontMatter } from '@docusaurus/plugin-content-pages';
8
- export declare function validatePageFrontMatter(frontMatter: Record<string, unknown>): FrontMatter;
8
+ export declare function validatePageFrontMatter(frontMatter: {
9
+ [key: string]: unknown;
10
+ }): FrontMatter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-content-pages",
3
- "version": "0.0.0-4769",
3
+ "version": "0.0.0-4772",
4
4
  "description": "Pages plugin for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/plugin-content-pages.d.ts",
@@ -18,17 +18,17 @@
18
18
  },
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
- "@docusaurus/core": "0.0.0-4769",
22
- "@docusaurus/mdx-loader": "0.0.0-4769",
23
- "@docusaurus/utils": "0.0.0-4769",
24
- "@docusaurus/utils-validation": "0.0.0-4769",
21
+ "@docusaurus/core": "0.0.0-4772",
22
+ "@docusaurus/mdx-loader": "0.0.0-4772",
23
+ "@docusaurus/utils": "0.0.0-4772",
24
+ "@docusaurus/utils-validation": "0.0.0-4772",
25
25
  "fs-extra": "^10.0.1",
26
26
  "remark-admonitions": "^1.2.1",
27
27
  "tslib": "^2.3.1",
28
28
  "webpack": "^5.70.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@docusaurus/types": "0.0.0-4769"
31
+ "@docusaurus/types": "0.0.0-4772"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": "^16.8.4 || ^17.0.0",
@@ -37,5 +37,5 @@
37
37
  "engines": {
38
38
  "node": ">=14"
39
39
  },
40
- "gitHead": "b104c515859e1872c4eccba6cea866558f7f6332"
40
+ "gitHead": "50ef1fb8e19a46e43c122d625c8bff2110546260"
41
41
  }
package/src/deps.d.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  declare module 'remark-admonitions' {
9
- type Options = Record<string, unknown>;
9
+ type Options = {[key: string]: unknown};
10
10
 
11
11
  const plugin: (options?: Options) => void;
12
12
  export = plugin;
@@ -20,8 +20,8 @@ const PageFrontMatterSchema = Joi.object<FrontMatter>({
20
20
  ...FrontMatterTOCHeadingLevels,
21
21
  });
22
22
 
23
- export function validatePageFrontMatter(
24
- frontMatter: Record<string, unknown>,
25
- ): FrontMatter {
23
+ export function validatePageFrontMatter(frontMatter: {
24
+ [key: string]: unknown;
25
+ }): FrontMatter {
26
26
  return validateFrontMatter(frontMatter, PageFrontMatterSchema);
27
27
  }
@@ -15,7 +15,7 @@ declare module '@docusaurus/plugin-content-pages' {
15
15
  include: string[];
16
16
  exclude: string[];
17
17
  mdxPageComponent: string;
18
- admonitions: Record<string, unknown>;
18
+ admonitions: {[key: string]: unknown};
19
19
  };
20
20
 
21
21
  export type Options = Partial<PluginOptions>;
@@ -39,7 +39,7 @@ declare module '@docusaurus/plugin-content-pages' {
39
39
  type: 'mdx';
40
40
  permalink: string;
41
41
  source: string;
42
- frontMatter: FrontMatter & Record<string, unknown>;
42
+ frontMatter: FrontMatter & {[key: string]: unknown};
43
43
  title?: string;
44
44
  description?: string;
45
45
  };