diff --git a/packages/effect/src/Effect.ts b/packages/effect/src/Effect.ts index 2f7c6d7b792..f6ccaf1fc91 100644 --- a/packages/effect/src/Effect.ts +++ b/packages/effect/src/Effect.ts @@ -6340,26 +6340,72 @@ export const Service: () => { const Make extends | NoExcessProperties<{ readonly scoped: Effect, any, any> - readonly dependencies?: ReadonlyArray - readonly accessors?: boolean + /** @deprecated */ + readonly phantom: never }, Make> | NoExcessProperties<{ readonly effect: Effect, any, any> - readonly dependencies?: ReadonlyArray - readonly accessors?: boolean + /** @deprecated */ + readonly phantom: never }, Make> | NoExcessProperties<{ readonly sync: LazyArg> - readonly accessors?: boolean + /** @deprecated */ + readonly phantom: never }, Make> | NoExcessProperties<{ readonly succeed: Service.AllowedType - readonly accessors?: boolean + /** @deprecated */ + readonly phantom: never }, Make> >( key: Key, make: Make ): Service.Class + < + const Key extends string, + const Make extends NoExcessProperties<{ + readonly scoped: Effect, any, any> + readonly dependencies?: ReadonlyArray + readonly accessors?: boolean + }, Make> + >( + key: Key, + make: Make + ): Service.Class + < + const Key extends string, + const Make extends NoExcessProperties<{ + readonly effect: Effect, any, any> + readonly dependencies?: ReadonlyArray + readonly accessors?: boolean + }, Make> + >( + key: Key, + make: Make + ): Service.Class + < + const Key extends string, + const Make extends NoExcessProperties<{ + readonly sync: LazyArg> + readonly dependencies?: ReadonlyArray + readonly accessors?: boolean + }, Make> + >( + key: Key, + make: Make + ): Service.Class + < + const Key extends string, + const Make extends NoExcessProperties<{ + readonly succeed: Service.AllowedType + readonly dependencies?: ReadonlyArray + readonly accessors?: boolean + }, Make> + >( + key: Key, + make: Make + ): Service.Class } = function() { return function() { const [id, maker] = arguments @@ -6514,7 +6560,6 @@ export declare namespace Service { readonly make: (_: MakeService) => Self } & Context.Tag - & Layer.Layer, MakeContext> & (MakeAccessors extends true ? Tag.Proxy> : {}) & Layer.Layer< Self,