|
1 | | -import * as _hooks from '../../hooks/src/index.js'; |
| 1 | +import * as _hooks from '../../hooks'; |
2 | 2 | // Intentionally not using a relative path to take advantage of |
3 | 3 | // the TS version resolution mechanism |
4 | 4 | import * as preact1 from 'preact'; |
5 | | -import { JSXInternal } from '../../src/jsx.js'; |
6 | | -import * as _Suspense from './suspense.js'; |
| 5 | +import { JSXInternal } from '../../src/jsx'; |
| 6 | +import * as _Suspense from './suspense'; |
7 | 7 |
|
8 | 8 | declare namespace preact { |
9 | 9 | export interface FunctionComponent<P = {}> { |
@@ -100,7 +100,7 @@ declare namespace preact { |
100 | 100 | } |
101 | 101 |
|
102 | 102 | // export default React; |
103 | | -export default React; |
| 103 | +export = React; |
104 | 104 | export as namespace React; |
105 | 105 | declare namespace React { |
106 | 106 | // Export JSX |
@@ -365,9 +365,9 @@ declare namespace React { |
365 | 365 |
|
366 | 366 | export type ElementType< |
367 | 367 | P = any, |
368 | | - Tag extends keyof JSX.IntrinsicElements = keyof JSX.IntrinsicElements |
| 368 | + Tag extends keyof JSXInternal.IntrinsicElements = keyof JSXInternal.IntrinsicElements |
369 | 369 | > = |
370 | | - | { [K in Tag]: P extends JSX.IntrinsicElements[K] ? K : never }[Tag] |
| 370 | + | { [K in Tag]: P extends JSXInternal.IntrinsicElements[K] ? K : never }[Tag] |
371 | 371 | | ComponentType<P>; |
372 | 372 |
|
373 | 373 | export type ComponentPropsWithoutRef<T extends ElementType> = PropsWithoutRef< |
@@ -432,3 +432,4 @@ declare namespace React { |
432 | 432 | ): void; |
433 | 433 | export const unstable_now: () => number; |
434 | 434 | } |
| 435 | + |
0 commit comments