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

@@ -7,9 +7,6 @@ type Store = {
someValue: "a" | "b"
}
}
type Vault = {
hello: string
}
const todo = <A>(): A => {
throw new Error("not implemented")
}
@@ -51,10 +48,10 @@ describe("Store", () => {
path: "/config/some2Value",
value: "a",
})
;(await createMainUtils<Store, Vault>(todo<Effects>())
;(await createMainUtils<Store>(todo<Effects>())
.store.getOwn("/config/someValue")
.const()) satisfies string
;(await createMainUtils<Store, Vault>(todo<Effects>())
;(await createMainUtils<Store>(todo<Effects>())
.store.getOwn("/config")
.const()) satisfies Store["config"]
await createMainUtils(todo<Effects>())