MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / both

Function both

graph-ui/src/ui/tooltip/Hint.tsx:155–160  ·  view source on GitHub ↗

Zwei Rueckrufe hintereinander, wo der Ausloeser schon einen hatte.

(first: ((value: T) => void) | undefined, second: (value: T) => void)

Source from the content-addressed store, hash-verified

153
154/** Zwei Rueckrufe hintereinander, wo der Ausloeser schon einen hatte. */
155function both<T>(first: ((value: T) => void) | undefined, second: (value: T) => void) {
156 return (value: T): void => {
157 first?.(value);
158 second(value);
159 };
160}
161
162export default function Hint(props: HintProps): JSX.Element {
163 const text = (props.text ?? '').replace(/\s+/g, ' ').trim();

Callers 1

HintFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected