@types/mdx
Advanced tools
Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "@types/mdx", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "TypeScript definitions for mdx", | ||
@@ -33,4 +33,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mdx", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "b7ee723a8e8a51357fdba1928d23f2f6d00238c340cc18b185941482b711ee00", | ||
"typesPublisherContentHash": "467f698d026a57d65a5a8538bc047c19acb24e5dcf50e19e9dcee6f5666baf75", | ||
"typeScriptVersion": "3.9" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Sun, 17 Oct 2021 19:31:17 GMT | ||
* Last updated: Sun, 15 May 2022 17:31:38 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
// Internal helper types | ||
// tslint:disable-next-line: strict-export-declare-modifiers | ||
type FunctionComponent<Props> = (props: Props) => JSX.Element; | ||
type FunctionComponent<Props> = (props: Props) => JSX.Element | null; | ||
// tslint:disable-next-line: strict-export-declare-modifiers | ||
@@ -21,11 +21,10 @@ type ClassComponent<Props> = new (props: Props) => JSX.ElementClass; | ||
*/ | ||
export type MDXComponents = NestedMDXComponents & | ||
{ | ||
[Key in keyof JSX.IntrinsicElements]?: Component<JSX.IntrinsicElements[Key]> | keyof JSX.IntrinsicElements; | ||
} & { | ||
/** | ||
* If a wrapper component is defined, the MDX content will be wrapped inside of it. | ||
*/ | ||
wrapper?: Component<any>; | ||
}; | ||
export type MDXComponents = NestedMDXComponents & { | ||
[Key in keyof JSX.IntrinsicElements]?: Component<JSX.IntrinsicElements[Key]> | keyof JSX.IntrinsicElements; | ||
} & { | ||
/** | ||
* If a wrapper component is defined, the MDX content will be wrapped inside of it. | ||
*/ | ||
wrapper?: Component<any>; | ||
}; | ||
@@ -51,3 +50,3 @@ /** | ||
*/ | ||
export type MDXContent = FunctionComponent<MDXProps>; | ||
export type MDXContent = (props: MDXProps) => JSX.Element; | ||
@@ -54,0 +53,0 @@ /** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8164
165