chore: Do the migrations

This commit is contained in:
BluJ
2023-04-24 15:52:43 -06:00
parent 75ec297be1
commit 50cfc7aa43
19 changed files with 167 additions and 98 deletions

View File

@@ -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[];

View File

@@ -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;
}