Work
Lint / lint (push) Successful in 12s

This commit is contained in:
Julien Valverdé
2025-07-14 06:52:38 +02:00
parent 0bb2a2fa01
commit 40eb25d2c3
2 changed files with 9 additions and 2 deletions
+5
View File
@@ -110,6 +110,8 @@ export interface Suspense {
readonly suspense: true
}
export type SuspenseProps = Omit<React.SuspenseProps, "children">
export const suspense = <T extends Component<any, any, any>>(
self: ExcludeKeys<T, keyof Suspense>
): T & Suspense => Object.setPrototypeOf(
@@ -119,6 +121,9 @@ export const suspense = <T extends Component<any, any, any>>(
export const useFC: {
<E, R, P extends {}>(
self: Component<E, R, ExcludeKeys<P, keyof SuspenseProps>> & Suspense
): Effect.Effect<React.FC<P & SuspenseProps>, never, Exclude<R, Scope.Scope>>
<E, R, P extends {}>(
self: Component<E, R, P>
): Effect.Effect<React.FC<P>, never, Exclude<R, Scope.Scope>>