mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-30 04:11:57 +00:00
feat: Utils to do bindLan and have ipv4 and ipv6 if need be
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { GenericManifest } from "../manifest/ManifestTypes";
|
||||
import { Dependency, PackageId } from "../types";
|
||||
import { GenericManifest } from "../manifest/ManifestTypes"
|
||||
import { Dependency, PackageId } from "../types"
|
||||
|
||||
export type Dependencies<T extends GenericManifest> = {
|
||||
exists(id: keyof T["dependencies"]): Dependency;
|
||||
running(id: keyof T["dependencies"]): Dependency;
|
||||
};
|
||||
exists(id: keyof T["dependencies"]): Dependency
|
||||
running(id: keyof T["dependencies"]): Dependency
|
||||
}
|
||||
|
||||
export const dependenciesSet = <
|
||||
T extends GenericManifest,
|
||||
@@ -13,13 +13,13 @@ export const dependenciesSet = <
|
||||
return {
|
||||
id,
|
||||
kind: "exists",
|
||||
} as Dependency;
|
||||
} as Dependency
|
||||
},
|
||||
|
||||
running(id: keyof T["dependencies"]) {
|
||||
return {
|
||||
id,
|
||||
kind: "running",
|
||||
} as Dependency;
|
||||
} as Dependency
|
||||
},
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user