diff --git a/packages/effect-fc/src/Component.ts b/packages/effect-fc/src/Component.ts index c773716..fd515ec 100644 --- a/packages/effect-fc/src/Component.ts +++ b/packages/effect-fc/src/Component.ts @@ -505,7 +505,7 @@ export declare namespace withSignature { export type Result< T extends Component, - F extends React.FC, + F extends Signature, > = Omit & { readonly use: Effect.Effect, Scope.Scope>> asFunctionComponent( @@ -521,7 +521,9 @@ export const withSignature: { >( self: T ): withSignature.Result -} = Function.dual(1, identity) +} = (self?: Component): any => self === undefined + ? identity + : self /** * Creates a new component with modified configuration options while preserving all original behavior.