Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/mdx

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/mdx - npm Package Compare versions

Comparing version 2.0.11 to 2.0.12

4

mdx/index.d.ts

@@ -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 @@ /**

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc