mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-27 02:41:57 +00:00
feat: Utils to do bindLan and have ipv4 and ipv6 if need be
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
import { ExpectedExports } from "../types";
|
||||
import { Migrations } from "./migrations/setupMigrations";
|
||||
import { Install } from "./setupInstall";
|
||||
import { Uninstall } from "./setupUninstall";
|
||||
import { ExpectedExports } from "../types"
|
||||
import { Migrations } from "./migrations/setupMigrations"
|
||||
import { Install } from "./setupInstall"
|
||||
import { Uninstall } from "./setupUninstall"
|
||||
|
||||
export function setupInit<WrapperData>(
|
||||
migrations: Migrations,
|
||||
install: Install<WrapperData>,
|
||||
uninstall: Uninstall<WrapperData>,
|
||||
): {
|
||||
init: ExpectedExports.init;
|
||||
uninit: ExpectedExports.uninit;
|
||||
init: ExpectedExports.init
|
||||
uninit: ExpectedExports.uninit
|
||||
} {
|
||||
return {
|
||||
init: async (opts) => {
|
||||
await migrations.init(opts);
|
||||
await install.init(opts);
|
||||
await migrations.init(opts)
|
||||
await install.init(opts)
|
||||
},
|
||||
uninit: async (opts) => {
|
||||
await migrations.uninit(opts);
|
||||
await uninstall.uninit(opts);
|
||||
await migrations.uninit(opts)
|
||||
await uninstall.uninit(opts)
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user