MCPcopy Index your code
hub / github.com/codeaashu/claude-code / applyProp

Function applyProp

src/ink/reconciler.ts:121–143  ·  view source on GitHub ↗
(node: DOMElement, key: string, value: unknown)

Source from the content-addressed store, hash-verified

119}
120
121function applyProp(node: DOMElement, key: string, value: unknown): void {
122 if (key === 'children') return
123
124 if (key === 'style') {
125 setStyle(node, value as Styles)
126 if (node.yogaNode) {
127 applyStyles(node.yogaNode, value as Styles)
128 }
129 return
130 }
131
132 if (key === 'textStyles') {
133 node.textStyles = value as TextStyles
134 return
135 }
136
137 if (EVENT_HANDLER_PROPS.has(key)) {
138 setEventHandler(node, key, value)
139 return
140 }
141
142 setAttribute(node, key, value as DOMNodeAttribute)
143}
144
145// --
146

Callers 1

createInstanceFunction · 0.85

Calls 4

setStyleFunction · 0.85
setEventHandlerFunction · 0.85
setAttributeFunction · 0.85
hasMethod · 0.45

Tested by

no test coverage detected