mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
@mdx-js/react exports mdx (alias for React.createElement) (#42657)
This commit is contained in:
parent
60ff970f67
commit
1febfb278c
5
types/mdx-js__react/index.d.ts
vendored
5
types/mdx-js__react/index.d.ts
vendored
@ -4,7 +4,7 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
import { Component, ComponentType, ReactNode, StyleHTMLAttributes, FC } from 'react';
|
||||
import { Component, ComponentType, ReactNode, StyleHTMLAttributes, FC, createElement } from 'react';
|
||||
|
||||
interface MDXProviderComponents {
|
||||
/**
|
||||
@ -143,6 +143,8 @@ declare function withMDXComponents<GProps extends InjectedMDXProviderProps>(
|
||||
Component: ComponentType<GProps>,
|
||||
): FC<Except<GProps, keyof InjectedMDXProviderProps>>;
|
||||
|
||||
declare const mdx: typeof createElement;
|
||||
|
||||
export {
|
||||
withMDXComponents,
|
||||
useMDXComponents,
|
||||
@ -151,4 +153,5 @@ export {
|
||||
InjectedMDXProviderProps,
|
||||
MDXProviderComponentsProp,
|
||||
MDXProviderComponents,
|
||||
mdx,
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user