(@mdx-js/react) Where is the exported Components type? #2104
Labels
📚 area/docs
This affects documentation
☂️ area/types
This affects typings
💪 phase/solved
Post is done
🦋 type/enhancement
This is great to have
Initial checklist
Affected packages and versions
@mdx-js/react^2.1.2
Link to runnable example
Steps to reproduce
Install the package
@mdx-js/react
and try to import mdx components type.Expected behavior
Until recently I was on an old version of v1, which had
MDXProviderComponentsProp
as an available when using@types/mdx-js__react
+ https://mdxjs.com/packages/react/#types seemed to indicate it was exported? So, I expected there to be an export forComponents
.Actual behavior
Components
is not availableSeeing https://github.com/mdx-js/mdx/blob/main/packages/react/index.js didn't export it, I figured out after going through the package to install
mdx/types
and am now usingMDXComponents
ieimport { MDXComponents } from "mdx/types";
.If this is the proper way to use the type, I think https://mdxjs.com/packages/react/#types might be a little misleading and could include the bit to install the package to use this type. Actually, it should probably link to https://mdxjs.com/docs/getting-started/#types?
Runtime
Node v16
Package manager
pnpm
OS
Linux
Build and bundle tools
Gatsby
The text was updated successfully, but these errors were encountered: