@@ -10,6 +10,7 @@ export type TypeId = typeof TypeId
|
||||
export interface Component<E, R, P extends {}> extends Pipeable.Pipeable, Component.Options {
|
||||
new(_: never): {}
|
||||
readonly [TypeId]: TypeId
|
||||
/** @internal */
|
||||
makeFunctionComponent(runtimeRef: React.Ref<Runtime.Runtime<Exclude<R, Scope.Scope>>>, scope: Scope.Scope): React.FC<P>
|
||||
readonly body: (props: P) => Effect.Effect<React.ReactNode, E, R>
|
||||
}
|
||||
@@ -327,7 +328,7 @@ export const withOptions: {
|
||||
self: T,
|
||||
options: Partial<Component.Options>,
|
||||
): T => Object.setPrototypeOf(
|
||||
{ ...self, ...options },
|
||||
Object.assign(function() {}, self, options),
|
||||
Object.getPrototypeOf(self),
|
||||
))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user