diff --git a/types.d.ts b/types.d.ts index 641a288..fb9c253 100644 --- a/types.d.ts +++ b/types.d.ts @@ -1,31 +1,3 @@ -// To do: remove when landed in DT -// https://github.com/DefinitelyTyped/DefinitelyTyped/pull/68600 -declare module 'react/jsx-runtime' { - import {ElementType, Fragment, Key, ReactElement} from 'react' - - function jsx(type: ElementType, props: unknown, key?: Key): ReactElement - - export {Fragment, jsx, jsx as jsxs} -} - -// To do: remove when landed in DT -// https://github.com/DefinitelyTyped/DefinitelyTyped/pull/68600 -declare module 'react/jsx-dev-runtime' { - import {ElementType, Fragment, Key, ReactElement} from 'react' - import {Source} from 'hast-util-to-jsx-runtime' - - function jsxDEV( - type: ElementType, - props: unknown, - key: Key | undefined, - isStatic: boolean, - source?: Source, - self?: unknown - ): ReactElement - - export {Fragment, jsxDEV} -} - // Support loading hastscript from https://esm.sh declare module 'https://esm.sh/hastscript@8?dev' { export * from 'hastscript'