| 48 | } |
| 49 | |
| 50 | static get layer() { |
| 51 | const tag = this |
| 52 | return Layer.effect( |
| 53 | tag, |
| 54 | Effect.gen(function* () { |
| 55 | const config = yield* Config.all(fields) |
| 56 | // 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. |
| 57 | return tag.of(config as Shape<Fields>) |
| 58 | }), |
| 59 | ) |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | // oxlint-disable-next-line typescript-eslint/no-unsafe-type-assertion -- The generated class carries typed static helpers. |