File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change 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
302declare module 'https://esm.sh/hastscript@8?dev' {
313 export * from 'hastscript'
You can’t perform that action at this time.
0 commit comments