MCPcopy Create free account
hub / github.com/Effect-TS/effect / constructor

Method constructor

packages/effect/src/unstable/reactivity/AtomRef.ts:199–203  ·  view source on GitHub ↗
(parent: ReadonlyRef<A>, transform: (a: A) => B)

Source from the content-addressed store, hash-verified

197 readonly parent: ReadonlyRef<A>
198 readonly transform: (a: A) => B
199 constructor(parent: ReadonlyRef<A>, transform: (a: A) => B) {
200 this[TypeId] = TypeId
201 this.parent = parent
202 this.transform = transform
203 }
204 [Equal.symbol](that: Equal.Equal) {
205 return Equal.equals(this.value, (that as ReadonlyRef<B>).value)
206 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected