Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
syi0808 committed Jul 30, 2024
1 parent add3977 commit 631747f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 3 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ export type BaseRenderOptions<
> = RenderOptions<Q, Container, BaseElement>

type RendererableContainer = ReactDOMClient.Container
type HydrateableContainer = Parameters<typeof ReactDOMClient['hydrateRoot']>[0]
type HydrateableContainer = Parameters<
(typeof ReactDOMClient)['hydrateRoot']
>[0]
/** @deprecated */
export interface ClientRenderOptions<
Q extends Queries,
Expand Down
7 changes: 2 additions & 5 deletions types/test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,8 @@ eslint
*/

// https://stackoverflow.com/questions/53807517/how-to-test-if-two-types-are-exactly-the-same
type IfEquals<T, U, Yes = unknown, No = never> = (<G>() => G extends T
? 1
: 2) extends <G>() => G extends U ? 1 : 2
? Yes
: No
type IfEquals<T, U, Yes = unknown, No = never> =
(<G>() => G extends T ? 1 : 2) extends <G>() => G extends U ? 1 : 2 ? Yes : No

/**
* Issues a type error if `Expected` is not identical to `Actual`.
Expand Down

0 comments on commit 631747f

Please sign in to comment.