Fix
All checks were successful
Lint / lint (push) Successful in 11s

This commit is contained in:
Julien Valverdé
2025-07-18 15:29:47 +02:00
parent 19e74c1673
commit 4baece6811

View File

@@ -329,12 +329,12 @@ export const withOptions: {
))
export const withRuntime: {
<E, R, P extends {}>(
<T extends Component<any, R, any>, R>(
context: React.Context<Runtime.Runtime<R>>,
): {
(self: Component<E, R, P> & Suspense): React.FC<P & SuspenseProps>
(self: Component<E, R, P>): React.FC<P>
}
): (self: T) => React.FC<T extends Suspense
? Component.Props<T> & SuspenseProps
: Component.Props<T>
>
<E, R, P extends {}>(
self: Component<E, R, P> & Suspense,
context: React.Context<Runtime.Runtime<R>>,