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

@@ -1,13 +1,13 @@
import { Effects, ExpectedExports } from "../types"
import { Utils, utils } from "../util/utils"
export type UninstallFn<Store, Vault> = (opts: {
export type UninstallFn<Store> = (opts: {
effects: Effects
utils: Utils<Store, Vault>
utils: Utils<Store>
}) => Promise<void>
export class Uninstall<Store, Vault> {
private constructor(readonly fn: UninstallFn<Store, Vault>) {}
static of<Store, Vault>(fn: UninstallFn<Store, Vault>) {
export class Uninstall<Store> {
private constructor(readonly fn: UninstallFn<Store>) {}
static of<Store>(fn: UninstallFn<Store>) {
return new Uninstall(fn)
}
@@ -23,6 +23,6 @@ export class Uninstall<Store, Vault> {
}
}
export function setupUninstall<Store, Vault>(fn: UninstallFn<Store, Vault>) {
export function setupUninstall<Store>(fn: UninstallFn<Store>) {
return Uninstall.of(fn)
}