@types/mdx 2.0.4 → 2.0.5
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.
- mdx/README.md +1 -1
- mdx/package.json +2 -2
- mdx/types.d.ts +3 -3
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:
|
|
11
|
+
* Last updated: Thu, 27 Apr 2023 10:02:45 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.
|
|
3
|
+
"version": "2.0.5",
|
|
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": "
|
|
33
|
+
"typesPublisherContentHash": "08c145be25e7de13f9272bcde2549ae1b24ce6e7063f0cf6f7364234e09e9f20",
|
|
34
34
|
"typeScriptVersion": "4.3"
|
|
35
35
|
}
|
mdx/types.d.ts
CHANGED
|
@@ -5,10 +5,10 @@ type FunctionComponent<Props> = (props: Props) => JSX.Element | null;
|
|
|
5
5
|
// tslint:disable-next-line: strict-export-declare-modifiers
|
|
6
6
|
type ClassComponent<Props> = new (props: Props) => JSX.ElementClass;
|
|
7
7
|
// tslint:disable-next-line: strict-export-declare-modifiers
|
|
8
|
-
type Component<Props> = FunctionComponent<Props> | ClassComponent<Props
|
|
8
|
+
type Component<Props> = FunctionComponent<Props> | ClassComponent<Props> | keyof JSX.IntrinsicElements;
|
|
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>;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
// Public MDX helper types
|
|
@@ -19,7 +19,7 @@ interface NestedMDXComponents {
|
|
|
19
19
|
* The key is the name of the element to override. The value is the component to render instead.
|
|
20
20
|
*/
|
|
21
21
|
export type MDXComponents = NestedMDXComponents & {
|
|
22
|
-
[Key in keyof JSX.IntrinsicElements]?: Component<JSX.IntrinsicElements[Key]
|
|
22
|
+
[Key in keyof JSX.IntrinsicElements]?: Component<JSX.IntrinsicElements[Key]>;
|
|
23
23
|
} & {
|
|
24
24
|
/**
|
|
25
25
|
* If a wrapper component is defined, the MDX content will be wrapped inside of it.
|