Skip to content

Commit

Permalink
trick lsp to improve auto-complete
Browse files Browse the repository at this point in the history
  • Loading branch information
mikearnaldi committed Oct 1, 2024
1 parent 0e033ef commit 32b18ac
Showing 1 changed file with 52 additions and 7 deletions.
59 changes: 52 additions & 7 deletions packages/effect/src/Effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6340,26 +6340,72 @@ export const Service: <Self>() => {
const Make extends
| NoExcessProperties<{
readonly scoped: Effect<Service.AllowedType<Key, Make>, any, any>
readonly dependencies?: ReadonlyArray<Layer.Layer.Any>
readonly accessors?: boolean
/** @deprecated */
readonly phantom: never
}, Make>
| NoExcessProperties<{
readonly effect: Effect<Service.AllowedType<Key, Make>, any, any>
readonly dependencies?: ReadonlyArray<Layer.Layer.Any>
readonly accessors?: boolean
/** @deprecated */
readonly phantom: never
}, Make>
| NoExcessProperties<{
readonly sync: LazyArg<Service.AllowedType<Key, Make>>
readonly accessors?: boolean
/** @deprecated */
readonly phantom: never
}, Make>
| NoExcessProperties<{
readonly succeed: Service.AllowedType<Key, Make>
readonly accessors?: boolean
/** @deprecated */
readonly phantom: never
}, Make>
>(
key: Key,
make: Make
): Service.Class<Self, Key, Make>
<
const Key extends string,
const Make extends NoExcessProperties<{
readonly scoped: Effect<Service.AllowedType<Key, Make>, any, any>
readonly dependencies?: ReadonlyArray<Layer.Layer.Any>
readonly accessors?: boolean
}, Make>
>(
key: Key,
make: Make
): Service.Class<Self, Key, Make>
<
const Key extends string,
const Make extends NoExcessProperties<{
readonly effect: Effect<Service.AllowedType<Key, Make>, any, any>
readonly dependencies?: ReadonlyArray<Layer.Layer.Any>
readonly accessors?: boolean
}, Make>
>(
key: Key,
make: Make
): Service.Class<Self, Key, Make>
<
const Key extends string,
const Make extends NoExcessProperties<{
readonly sync: LazyArg<Service.AllowedType<Key, Make>>
readonly dependencies?: ReadonlyArray<Layer.Layer.Any>
readonly accessors?: boolean
}, Make>
>(
key: Key,
make: Make
): Service.Class<Self, Key, Make>
<
const Key extends string,
const Make extends NoExcessProperties<{
readonly succeed: Service.AllowedType<Key, Make>
readonly dependencies?: ReadonlyArray<Layer.Layer.Any>
readonly accessors?: boolean
}, Make>
>(
key: Key,
make: Make
): Service.Class<Self, Key, Make>
} = function() {
return function() {
const [id, maker] = arguments
Expand Down Expand Up @@ -6514,7 +6560,6 @@ export declare namespace Service {
readonly make: (_: MakeService<Make>) => Self
}
& Context.Tag<Self, Self>
& Layer.Layer<Self, MakeError<Make>, MakeContext<Make>>
& (MakeAccessors<Make> extends true ? Tag.Proxy<Self, MakeService<Make>> : {})
& Layer.Layer<
Self,
Expand Down

0 comments on commit 32b18ac

Please sign in to comment.