()
| 186 | : {}; |
| 187 | |
| 188 | const getPersisted = (): Promise<PersistedContent<Persist> | undefined> => |
| 189 | transaction(async () => { |
| 190 | await refreshSchema(); |
| 191 | const tables = await loadTables(); |
| 192 | const values = await loadValues(); |
| 193 | return !objIsEmpty(tables) || !isUndefined(values) |
| 194 | ? [tables as Tables, values as Values] |
| 195 | : undefined; |
| 196 | }) as any; |
| 197 | |
| 198 | const setPersisted = ( |
| 199 | getContent: () => PersistedContent<Persist>, |
nothing calls this directly
no test coverage detected
searching dependent graphs…