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

Function getNodeType

packages/debugger/src/main/utils.ts:60–67  ·  view source on GitHub ↗
(
    o: Solid.SourceMapValue | Solid.Signal | Solid.Owner | Solid.Store
)

Source from the content-addressed store, hash-verified

58 'comparator' in o
59
60export function getNodeType(
61 o: Solid.SourceMapValue | Solid.Signal | Solid.Owner | Solid.Store
62): NodeType {
63 if (isSolidOwner(o)) return getOwnerType(o)
64 if (isSolidStore(o)) return NodeType.Store
65 if (isSolidSignal(o)) return NodeType.Signal
66 else return NodeType.CustomValue
67}
68
69const SOLID_REFRESH_PREFIX = '[solid-refresh]'
70

Callers 4

addNodeToGraphFunction · 0.90
getNodeStateFunction · 0.90
getNodeStateWithValueFunction · 0.90
getNodeFunction · 0.85

Calls 4

isSolidOwnerFunction · 0.85
getOwnerTypeFunction · 0.85
isSolidStoreFunction · 0.85
isSolidSignalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…