diff --git a/packages/effect-fc/src/Async.ts b/packages/effect-fc/src/Async.ts index 5ae3b91..53aebb6 100644 --- a/packages/effect-fc/src/Async.ts +++ b/packages/effect-fc/src/Async.ts @@ -50,7 +50,11 @@ export const AsyncPrototype: AsyncPrototype = Object.freeze({ export const isAsync = (u: unknown): u is Async => Predicate.hasProperty(u, AsyncTypeId) export const async = >( - self: T + self: T & ( + "promise" extends keyof Component.Component.Props + ? "'promise' prop name is reserved for Async components. Please rename the 'promise' prop to something else." + : T + ) ): ( & Omit> & Component.Component<