( input: CleanupStoreInput )
| 830 | } |
| 831 | |
| 832 | export async function prepareStoreCleanup( |
| 833 | input: CleanupStoreInput |
| 834 | ): Promise<PreparedStoreCleanup> { |
| 835 | const id = validateStoreId(input.id); |
| 836 | const entry = await getRegisteredStore({ |
| 837 | id, |
| 838 | globalDataDir: input.globalDataDir, |
| 839 | }); |
| 840 | |
| 841 | return { |
| 842 | ...cleanupStoreOutput(entry.id, entry.storeRoot), |
| 843 | backend: entry.backend, |
| 844 | ...(input.globalDataDir ? { globalDataDir: input.globalDataDir } : {}), |
| 845 | }; |
| 846 | } |
| 847 | |
| 848 | export async function unregisterStore( |
| 849 | input: CleanupStoreInput |
no test coverage detected