Socket
Socket
Sign inDemoInstall

@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.2 to 2.0.3

10

mdx/index.d.ts

@@ -36,4 +36,4 @@ // Type definitions for non-npm package mdx 2.0

* The previous example added types to *all* `.mdx` files.
* To define additional types for a specific MDX file, create a file with the same name but postfixed
* with `.d.ts` next to the MDX file.
* To define types for a specific MDX file, create a file with the same name but postfixed with
* `.d.ts` next to the MDX file.
*

@@ -51,5 +51,11 @@ * For example, given the following MDX file `my-component.mdx`:

* ```ts
* export { default } from '*.mdx';
*
* export const message: string;
* ```
*
* Note that this overwrites the `declare module '*.mdx' { … }` types from earlier, which is why you
* also need to define the default export. You can also define your own default export type to narrow
* the accepted prop types of this specific file.
*
* It should now be possible to import both the MDX component and the exported constant `message`.

@@ -56,0 +62,0 @@ */

6

mdx/package.json
{
"name": "@types/mdx",
"version": "2.0.2",
"version": "2.0.3",
"description": "TypeScript definitions for mdx",

@@ -33,4 +33,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mdx",

"dependencies": {},
"typesPublisherContentHash": "467f698d026a57d65a5a8538bc047c19acb24e5dcf50e19e9dcee6f5666baf75",
"typeScriptVersion": "3.9"
"typesPublisherContentHash": "34b229059b2ba6024fdf79852a3dfac83188851aa3f53ce094d14073d82015cc",
"typeScriptVersion": "4.1"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Sun, 15 May 2022 17:31:38 GMT
* Last updated: Tue, 18 Oct 2022 17:02:55 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

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