@types/mdx 2.0.0 → 2.0.1

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 (3) hide show
  1. mdx/README.md +1 -1
  2. mdx/package.json +2 -2
  3. mdx/types.d.ts +2 -2
mdx/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for mdx (https://github.com/mdx-js/mdx).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mdx.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 12 Oct 2021 20:01:25 GMT
11
+ * Last updated: Sun, 17 Oct 2021 19:31:17 GMT
12
12
  * Dependencies: none
13
13
  * Global values: none
14
14
 
mdx/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/mdx",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "TypeScript definitions for mdx",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mdx",
6
6
  "license": "MIT",
@@ -30,6 +30,6 @@
30
30
  },
31
31
  "scripts": {},
32
32
  "dependencies": {},
33
- "typesPublisherContentHash": "eaec60d3fac43bf4c92de09e54f8e7ec97ccd6afa1c7ef9604fab8498c615172",
33
+ "typesPublisherContentHash": "b7ee723a8e8a51357fdba1928d23f2f6d00238c340cc18b185941482b711ee00",
34
34
  "typeScriptVersion": "3.9"
35
35
  }
mdx/types.d.ts CHANGED
@@ -8,7 +8,7 @@ type ClassComponent<Props> = new (props: Props) => JSX.ElementClass;
8
8
  type Component<Props> = FunctionComponent<Props> | ClassComponent<Props>;
9
9
  // tslint:disable-next-line: strict-export-declare-modifiers
10
10
  interface NestedMDXComponents {
11
- [key: string]: NestedMDXComponents | Component<any>;
11
+ [key: string]: NestedMDXComponents | Component<any> | keyof JSX.IntrinsicElements;
12
12
  }
13
13
 
14
14
  // Public MDX helper types
@@ -20,7 +20,7 @@ interface NestedMDXComponents {
20
20
  */
21
21
  export type MDXComponents = NestedMDXComponents &
22
22
  {
23
- [Key in keyof JSX.IntrinsicElements]?: Component<JSX.IntrinsicElements[Key]>;
23
+ [Key in keyof JSX.IntrinsicElements]?: Component<JSX.IntrinsicElements[Key]> | keyof JSX.IntrinsicElements;
24
24
  } & {
25
25
  /**
26
26
  * If a wrapper component is defined, the MDX content will be wrapped inside of it.