refactor(core): support tiered layer nodes (#33937)
This commit is contained in:
parent
21b78c49fc
commit
0e731c2a1a
80 changed files with 1132 additions and 601 deletions
11
packages/core/src/effect/scoped-node.ts
Normal file
11
packages/core/src/effect/scoped-node.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { LayerNode } from "./layer-node"
|
||||
|
||||
export const tiers = LayerNode.tiers(["location", "global"])
|
||||
|
||||
export type GlobalNode<A, E = never> = LayerNode.Node<A, E, (typeof tiers.values)["global"]>
|
||||
export type LocationNode<A, E = never> = LayerNode.Node<A, E, (typeof tiers.values)["location"]>
|
||||
|
||||
export const makeGlobalNode = tiers.make("global")
|
||||
export const makeLocationNode = tiers.make("location")
|
||||
|
||||
export * as ScopedNode from "./scoped-node"
|
||||
Loading…
Add table
Add a link
Reference in a new issue