diff --git a/types/index.d.ts b/types/index.d.ts index 37c8392a..bb7576a8 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -53,7 +53,9 @@ export type BaseRenderOptions< > = RenderOptions type RendererableContainer = ReactDOMClient.Container -type HydrateableContainer = Parameters[0] +type HydrateableContainer = Parameters< + (typeof ReactDOMClient)['hydrateRoot'] +>[0] /** @deprecated */ export interface ClientRenderOptions< Q extends Queries, diff --git a/types/test.tsx b/types/test.tsx index f8cf4aad..275510b1 100644 --- a/types/test.tsx +++ b/types/test.tsx @@ -262,11 +262,8 @@ eslint */ // https://stackoverflow.com/questions/53807517/how-to-test-if-two-types-are-exactly-the-same -type IfEquals = (() => G extends T - ? 1 - : 2) extends () => G extends U ? 1 : 2 - ? Yes - : No +type IfEquals = + (() => G extends T ? 1 : 2) extends () => G extends U ? 1 : 2 ? Yes : No /** * Issues a type error if `Expected` is not identical to `Actual`.