mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-31 04:33:40 +00:00
chore: Do the migrations
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { ValidEmVer } from "../emverLite/mod";
|
||||
|
||||
export interface Container {
|
||||
image: string;
|
||||
mounts: Record<string, string>;
|
||||
@@ -5,10 +7,12 @@ export interface Container {
|
||||
sigtermTimeout?: string; // if more than 30s to shutdown
|
||||
}
|
||||
|
||||
export type ManifestVersion = ValidEmVer;
|
||||
|
||||
export interface GenericManifest {
|
||||
id: string;
|
||||
title: string;
|
||||
version: string;
|
||||
version: ManifestVersion;
|
||||
releaseNotes: string;
|
||||
license: string; // name of license
|
||||
replaces: string[];
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { GenericManifest } from "./ManifestTypes";
|
||||
import { GenericManifest, ManifestVersion } from "./ManifestTypes";
|
||||
|
||||
export function setupManifest<
|
||||
M extends GenericManifest & { id: Id },
|
||||
M extends GenericManifest & { id: Id; version: Version },
|
||||
Id extends string,
|
||||
Version extends ManifestVersion,
|
||||
>(manifest: M): M {
|
||||
return manifest;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user