chore: update Effect beta (#28505)

This commit is contained in:
Kit Langton
2026-05-20 15:09:19 -04:00
committed by GitHub
parent 3553754083
commit ec6d42d41d
5 changed files with 31 additions and 33 deletions

View File

@@ -50,12 +50,10 @@ export const Service =
static get defaultLayer() {
return Layer.effect(
this,
Config.all(fields)
.asEffect()
.pipe(
// oxlint-disable-next-line typescript-eslint/no-unsafe-type-assertion -- Config.all preserves the field shape, but its conditional return type also supports iterable inputs.
Effect.map((config) => this.of(config as Shape<Fields>)),
),
Config.all(fields).pipe(
// oxlint-disable-next-line typescript-eslint/no-unsafe-type-assertion -- Config.all preserves the field shape, but its conditional return type also supports iterable inputs.
Effect.map((config) => this.of(config as Shape<Fields>)),
),
)
}
}