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

Function toNode

packages/effect/src/ui/View.ts:602–603  ·  view source on GitHub ↗
(content: Content<Msg, R>)

Source from the content-addressed store, hash-verified

600 * @since 4.2.0
601 */
602export const toNode = <Msg, R>(content: Content<Msg, R>): Node<Msg, R> =>
603 content instanceof ElementBuilder ? buildWith(content, noChildren) : content
604
605/**
606 * Builds the element node a builder describes: the children it holds, then

Callers 4

pushChildFunction · 0.85
forwardToFunction · 0.85
childrenOfFunction · 0.85
lazyMethod · 0.85

Calls 1

buildWithFunction · 0.85

Tested by

no test coverage detected