diff --git a/packages/effect-fc/src/Component.ts b/packages/effect-fc/src/Component.ts index 21a160b..ef54a5b 100644 --- a/packages/effect-fc/src/Component.ts +++ b/packages/effect-fc/src/Component.ts @@ -102,11 +102,15 @@ extends Pipeable.Pipeable { readonly use: Effect.Effect> } -export const ComponentPrototype: ComponentPrototype = Object.freeze({ - [ComponentTypeId]: ComponentTypeId, - ...Pipeable.Prototype, - ...ComponentImplPrototype, -} as const) +export const ComponentPrototype: ComponentPrototype = Object.freeze( + Object.defineProperties( + { + [ComponentTypeId]: ComponentTypeId, + ...Pipeable.Prototype, + }, + Object.getOwnPropertyDescriptors(ComponentImplPrototype), + ) as ComponentPrototype +) export interface ComponentOptions {