@types/mdx
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -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 @@ */ |
{ | ||
"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 |
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
8450
171
5