Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions types/mdx/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
*/
declare module "*.mdx" {
// eslint-disable-next-line @definitelytyped/no-self-import
import { MDXProps } from "mdx/types";
import { Element, MDXProps } from "mdx/types";

/**
* An function component which renders the MDX content using JSX.
Expand All @@ -61,7 +61,7 @@ declare module "*.mdx" {
* @returns A JSX element. The meaning of this may depend on the project configuration. I.e. it
* could be a React, Preact, or Vuex element.
*/
export default function MDXContent(props: MDXProps): JSX.Element;
export default function MDXContent(props: MDXProps): Element;
}

// Support markdown extensions from
Expand Down
5 changes: 4 additions & 1 deletion types/mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
"projects": [
"https://github.com/mdx-js/mdx"
],
"tsconfigs": ["tsconfig.preact.json", "tsconfig.react.json"],
"devDependencies": {
"@types/mdx": "workspace:."
"@types/mdx": "workspace:.",
"@types/react": "*",
"preact": "*"
},
"owners": [
{
Expand Down
Loading