MCPcopy Create free account
hub / github.com/freecodexyz/free-code / done

Function done

src/interactiveHelpers.tsx:41–41  ·  view source on GitHub ↗
(result: T)

Source from the content-addressed store, hash-verified

39export function showDialog<T = void>(root: Root, renderer: (done: (result: T) => void) => React.ReactNode): Promise<T> {
40 return new Promise<T>(resolve => {
41 const done = (result: T): void => void resolve(result);
42 root.render(renderer(done));
43 });
44}

Callers 1

showSetupScreensFunction · 0.70

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected