From bd5a30326c6c49669d2b94a824a73462814375cd Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Tue, 7 Dec 2021 21:35:41 +0300 Subject: [PATCH] Made interface that describes mod metadata --- src/metadata/mod-metadata.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/metadata/mod-metadata.ts diff --git a/src/metadata/mod-metadata.ts b/src/metadata/mod-metadata.ts new file mode 100644 index 0000000..cefcb2e --- /dev/null +++ b/src/metadata/mod-metadata.ts @@ -0,0 +1,12 @@ +import PublisherTarget from "../publishing/publisher-target"; +import Dependency from "./dependency"; + +export default interface ModMetadata { + get id(): string; + get name(): string; + get version(): string; + get loaders(): string[]; + get dependencies(): Dependency[]; + + getProjectId(project: PublisherTarget): string | undefined; +}