diff --git a/packages/effect-fc/src/Async.ts b/packages/effect-fc/src/Async.ts index f35fc17..d8e55b6 100644 --- a/packages/effect-fc/src/Async.ts +++ b/packages/effect-fc/src/Async.ts @@ -24,7 +24,7 @@ export const AsyncPrototype: AsyncPrototype = Object.freeze({ const Inner = (props: { readonly [PromiseTypeId]: Promise }) => React.use(props[PromiseTypeId]) Inner.displayName = `${ this.displayName }Inner` - return (props: {}) => { + return (props: P) => { const promise = Runtime.runPromise(runtimeRef.current)( Effect.andThen( Component.useScope([], this),