(
type: T,
id: T extends ValueItemType.Value ? undefined : NodeID | string,
)
| 188 | | ValueItemType.Value |
| 189 | |
| 190 | export 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 | |
| 198 | export type ValueUpdateListener = (newValue: unknown, oldValue: unknown) => void |
| 199 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…