Skip to content

Commit cf072f3

Browse files
authored
Remove augmentation of React JSX runtime
Closes GH-7. Reviewed-by: Titus Wormer <[email protected]>
1 parent 5ae98d2 commit cf072f3

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

types.d.ts

-28
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,3 @@
1-
// To do: remove when landed in DT
2-
// https://github.com/DefinitelyTyped/DefinitelyTyped/pull/68600
3-
declare module 'react/jsx-runtime' {
4-
import {ElementType, Fragment, Key, ReactElement} from 'react'
5-
6-
function jsx(type: ElementType, props: unknown, key?: Key): ReactElement
7-
8-
export {Fragment, jsx, jsx as jsxs}
9-
}
10-
11-
// To do: remove when landed in DT
12-
// https://github.com/DefinitelyTyped/DefinitelyTyped/pull/68600
13-
declare module 'react/jsx-dev-runtime' {
14-
import {ElementType, Fragment, Key, ReactElement} from 'react'
15-
import {Source} from 'hast-util-to-jsx-runtime'
16-
17-
function jsxDEV(
18-
type: ElementType,
19-
props: unknown,
20-
key: Key | undefined,
21-
isStatic: boolean,
22-
source?: Source,
23-
self?: unknown
24-
): ReactElement
25-
26-
export {Fragment, jsxDEV}
27-
}
28-
291
// Support loading hastscript from https://esm.sh
302
declare module 'https://esm.sh/hastscript@8?dev' {
313
export * from 'hastscript'

0 commit comments

Comments
 (0)