Made interface that represents Modrinth dependency

This commit is contained in:
Kir_Antipov 2023-04-24 12:34:16 +00:00
parent 43a037e6e1
commit 3bb4e7f7f9

View file

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