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

Function getValueItemId

packages/debugger/src/main/types.ts:190–196  ·  view source on GitHub ↗
(
    type: T,
    id: T extends ValueItemType.Value ? undefined : NodeID | string,
)

Source from the content-addressed store, hash-verified

188 | ValueItemType.Value
189
190export const getValueItemId = <T extends ValueItemType>(
191 type: T,
192 id: T extends ValueItemType.Value ? undefined : NodeID | string,
193): ValueItemID => {
194 if (type === ValueItemType.Value) return ValueItemType.Value
195 return `${type}:${id}` as ValueItemID
196}
197
198export type ValueUpdateListener = (newValue: unknown, oldValue: unknown) => void
199

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…