Skip to content

Commit 4702151

Browse files
authored
Fix type import from react-dom
The `react-dom/client` module does not export the `Container` type.
1 parent a4744fa commit 4702151

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// TypeScript Version: 3.8
22
import * as ReactDOMClient from 'react-dom/client'
3+
import { Container as RendererableContainer } from 'react-dom'
34
import {
45
queries,
56
Queries,
@@ -52,7 +53,6 @@ export type BaseRenderOptions<
5253
BaseElement extends RendererableContainer | HydrateableContainer,
5354
> = RenderOptions<Q, Container, BaseElement>
5455

55-
type RendererableContainer = ReactDOMClient.Container
5656
type HydrateableContainer = Parameters<typeof ReactDOMClient['hydrateRoot']>[0]
5757
/** @deprecated */
5858
export interface ClientRenderOptions<

0 commit comments

Comments
 (0)