MCPcopy Create free account
hub / github.com/TanStack/db / resolveInvoke

Function resolveInvoke

packages/electron-db-sqlite-persistence/src/renderer.ts:317–331  ·  view source on GitHub ↗
(
  options: ElectronSQLitePersistenceOptions,
)

Source from the content-addressed store, hash-verified

315}
316
317function resolveInvoke(
318 options: ElectronSQLitePersistenceOptions,
319): ElectronPersistenceInvoke {
320 if (options.invoke) {
321 return options.invoke
322 }
323
324 if (options.ipcRenderer) {
325 return (channel, request) => options.ipcRenderer!.invoke(channel, request)
326 }
327
328 throw new InvalidPersistedCollectionConfigError(
329 `Electron renderer persistence requires either invoke or ipcRenderer`,
330 )
331}
332
333export function createElectronSQLitePersistence(
334 options: ElectronSQLitePersistenceOptions,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected