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

This commit is contained in:
Julien Valverdé
2025-07-23 14:40:33 +02:00
parent f867980913
commit 0ac6fd2e06

View File

@@ -59,12 +59,12 @@ const ComponentProto = Object.freeze({
}, [])
}),
makeFunctionComponent(
this: Component<any, any, any>,
runtimeRef: React.RefObject<Runtime.Runtime<any>>,
makeFunctionComponent <E, R, P extends {}>(
this: Component<E, R, P>,
runtimeRef: React.RefObject<Runtime.Runtime<Exclude<R, Scope.Scope>>>,
scope: Scope.Scope,
): React.FC<any> {
return (props: any) => Runtime.runSync(runtimeRef.current)(
): React.FC<P> {
return (props: P) => Runtime.runSync(runtimeRef.current)(
Effect.provideService(this.body(props), Scope.Scope, scope)
)
},