chore: generate
This commit is contained in:
parent
ecdfff5a42
commit
71c3a7c8f2
10 changed files with 292 additions and 293 deletions
|
|
@ -16,8 +16,7 @@ class OtherError {
|
|||
|
||||
const tags = LayerNode.tags({ app: [] })
|
||||
const make = tags.make("app")
|
||||
const build = <A, E>(root: LayerNode.Node<A, E, any>) =>
|
||||
LayerNodeTree.compile(root) as Layer.Layer<A, E>
|
||||
const build = <A, E>(root: LayerNode.Node<A, E, any>) => LayerNodeTree.compile(root) as Layer.Layer<A, E>
|
||||
const aLayer = Layer.succeed(A, A.of({}))
|
||||
const bLayer = Layer.effect(B, Effect.as(A, B.of({})))
|
||||
const cLayer = Layer.effect(
|
||||
|
|
|
|||
|
|
@ -14,10 +14,10 @@ class App extends Context.Service<App, { readonly run: Effect.Effect<string[]> }
|
|||
const tags = LayerNode.tags({ app: [] })
|
||||
const make = tags.make("app")
|
||||
const build = <A, E>(root: LayerNode.Node<A, E, any>, replacements?: readonly LayerNode.Replacement[]) =>
|
||||
LayerNodeTree.compile(
|
||||
root,
|
||||
new Map(replacements?.map((item) => [item.source, item.replacement])),
|
||||
) as Layer.Layer<A, E>
|
||||
LayerNodeTree.compile(root, new Map(replacements?.map((item) => [item.source, item.replacement]))) as Layer.Layer<
|
||||
A,
|
||||
E
|
||||
>
|
||||
const valueLayer = Layer.succeed(Value, Value.of({ value: "production" }))
|
||||
const greetingLayer = Layer.effect(
|
||||
Greeting,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue