MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / getNodeStateWithValue

Function getNodeStateWithValue

packages/logger/src/log.ts:59–70  ·  view source on GitHub ↗
(
    owner: Solid.Computation | Solid.Signal | NodeStateWithValue,
)

Source from the content-addressed store, hash-verified

57 }
58}
59export function getNodeStateWithValue(
60 owner: Solid.Computation | Solid.Signal | NodeStateWithValue,
61): NodeStateWithValue {
62 if ('type' in owner && 'typeName' in owner && 'name' in owner) return owner
63 const type = getNodeType(owner)
64 return {
65 type,
66 typeName: NODE_TYPE_NAMES[type],
67 name: getNodeName(owner) ?? UNKNOWN,
68 value: owner.value,
69 }
70}
71
72export function createAlignedTextWidth<T extends string>(): [
73 getPaddedText: (text: string) => T,

Callers 2

logInitialValueFunction · 0.85
logSignalValueFunction · 0.85

Calls 2

getNodeTypeFunction · 0.90
getNodeNameFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…