From 3bb4e7f7f9a9d677173caef4f29c8bb9dc8a9425 Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Mon, 24 Apr 2023 12:34:16 +0000 Subject: [PATCH] Made interface that represents Modrinth dependency --- src/platforms/modrinth/modrinth-dependency.ts | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/platforms/modrinth/modrinth-dependency.ts diff --git a/src/platforms/modrinth/modrinth-dependency.ts b/src/platforms/modrinth/modrinth-dependency.ts new file mode 100644 index 0000000..cb0f939 --- /dev/null +++ b/src/platforms/modrinth/modrinth-dependency.ts @@ -0,0 +1,26 @@ +import { ModrinthDependencyType } from "./modrinth-dependency-type"; + +/** + * Represents a Modrinth version dependency. + */ +export interface ModrinthDependency { + /** + * The version id of the dependency. + */ + version_id?: string; + + /** + * The project id of the dependency. + */ + project_id?: string; + + /** + * The file name of the dependency. + */ + file_name?: string; + + /** + * The type of dependency (e.g., required, optional). + */ + dependency_type: ModrinthDependencyType; +}