From 8e79d5d1187660fb14102b249c1018353b182276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Valverd=C3=A9?= Date: Sat, 16 May 2026 12:57:33 +0200 Subject: [PATCH] Fix --- packages/effect-fc/src/Component.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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 {