feat: Remove the vault

This commit is contained in:
Blu-J
2023-05-30 17:36:30 -06:00
parent 613bf74180
commit 3f5dbc6a4b
24 changed files with 308 additions and 515 deletions

View File

@@ -17,17 +17,17 @@ import "./Daemons"
* @param fn
* @returns
*/
export const setupMain = <Store, Vault>(
export const setupMain = <Store>(
fn: (o: {
effects: Effects
started(onTerm: () => void): null
utils: Utils<Store, Vault, {}>
utils: Utils<Store, {}>
}) => Promise<Daemons<any>>,
): ExpectedExports.main => {
return async (options) => {
const result = await fn({
...options,
utils: createMainUtils<Store, Vault>(options.effects),
utils: createMainUtils<Store>(options.effects),
})
await result.build().then((x) => x.wait())
}