refactor(core): support tiered layer nodes (#33937)

This commit is contained in:
James Long 2026-06-25 14:34:17 -04:00 committed by GitHub
commit 0e731c2a1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
80 changed files with 1132 additions and 601 deletions

View 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"