@types/mdx
Advanced tools
Comparing version 2.0.11 to 2.0.12
@@ -55,3 +55,3 @@ /** | ||
// eslint-disable-next-line @definitelytyped/no-self-import | ||
import { MDXProps } from "mdx/types"; | ||
import { Element, MDXProps } from "mdx/types"; | ||
@@ -65,3 +65,3 @@ /** | ||
*/ | ||
export default function MDXContent(props: MDXProps): JSX.Element; | ||
export default function MDXContent(props: MDXProps): Element; | ||
} | ||
@@ -68,0 +68,0 @@ |
{ | ||
"name": "@types/mdx", | ||
"version": "2.0.11", | ||
"version": "2.0.12", | ||
"description": "TypeScript definitions for mdx", | ||
@@ -33,4 +33,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mdx", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "255d12a68ca2af3d4bb076c14be25530f082517ea6c1fd5348ccc7d6172e285c", | ||
"typeScriptVersion": "4.6" | ||
"typesPublisherContentHash": "b507a925490ff468c96fdb39c4df12bc6fcd0e1fc49ead48a72685cad7f15c52", | ||
"typeScriptVersion": "4.7" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 30 Jan 2024 21:35:45 GMT | ||
* Last updated: Fri, 22 Mar 2024 11:06:48 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ |
@@ -26,2 +26,7 @@ // Internal helper types | ||
/** | ||
* A JSX element returned by MDX content. | ||
*/ | ||
export type Element = JSX.Element; | ||
/** | ||
* A valid JSX function component. | ||
@@ -31,3 +36,3 @@ */ | ||
// If JSX.ElementType isn’t defined, the valid return type is JSX.Element | ||
? (props: Props) => JSX.Element | null | ||
? (props: Props) => Element | null | ||
: FunctionElementType extends never | ||
@@ -98,3 +103,3 @@ // If JSX.ElementType is defined, but doesn’t allow function components, function components are disallowed. | ||
*/ | ||
export type MDXContent = (props: MDXProps) => JSX.Element; | ||
export type MDXContent = (props: MDXProps) => Element; | ||
@@ -101,0 +106,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
9788
210