MCPcopy
hub / github.com/microsoft/data-formulator / reqToPromise

Function reqToPromise

src/app/workspaceDB.ts:77–82  ·  view source on GitHub ↗
(req: IDBRequest<T>)

Source from the content-addressed store, hash-verified

75}
76
77function reqToPromise<T>(req: IDBRequest<T>): Promise<T> {
78 return new Promise((resolve, reject) => {
79 req.onsuccess = () => resolve(req.result);
80 req.onerror = () => reject(req.error);
81 });
82}
83
84// ── Workspace CRUD ──────────────────────────────────────────────────────
85

Callers 7

listFunction · 0.85
loadFunction · 0.85
saveFunction · 0.85
deleteFunction · 0.85
updateDisplayNameFunction · 0.85
loadAllFunction · 0.85
deleteAllFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected