File tree 1 file changed +0
-28
lines changed
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
-
29
1
// Support loading hastscript from https://esm.sh
30
2
declare module 'https://esm.sh/hastscript@8?dev' {
31
3
export * from 'hastscript'
You can’t perform that action at this time.
0 commit comments