mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
misc sdk changes (#2934)
* misc sdk changes * delete the store ☠️ * port comments * fix build * fix removing * fix tests * beta.20 --------- Co-authored-by: Matt Hill <mattnine@protonmail.com>
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
import * as T from "../../../base/lib/types"
|
||||
|
||||
export type UninstallFn<Manifest extends T.SDKManifest, Store> = (opts: {
|
||||
export type UninstallFn<Manifest extends T.SDKManifest> = (opts: {
|
||||
effects: T.Effects
|
||||
}) => Promise<null | void | undefined>
|
||||
export class Uninstall<Manifest extends T.SDKManifest, Store> {
|
||||
private constructor(readonly fn: UninstallFn<Manifest, Store>) {}
|
||||
static of<Manifest extends T.SDKManifest, Store>(
|
||||
fn: UninstallFn<Manifest, Store>,
|
||||
) {
|
||||
export class Uninstall<Manifest extends T.SDKManifest> {
|
||||
private constructor(readonly fn: UninstallFn<Manifest>) {}
|
||||
static of<Manifest extends T.SDKManifest>(fn: UninstallFn<Manifest>) {
|
||||
return new Uninstall(fn)
|
||||
}
|
||||
|
||||
@@ -22,8 +20,8 @@ export class Uninstall<Manifest extends T.SDKManifest, Store> {
|
||||
}
|
||||
}
|
||||
|
||||
export function setupUninstall<Manifest extends T.SDKManifest, Store>(
|
||||
fn: UninstallFn<Manifest, Store>,
|
||||
export function setupUninstall<Manifest extends T.SDKManifest>(
|
||||
fn: UninstallFn<Manifest>,
|
||||
) {
|
||||
return Uninstall.of(fn)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user