From c430f69877ffa8f65dd3dead521d17ec85202648 Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Fri, 17 Mar 2023 07:34:24 +0000 Subject: [PATCH] Made an interface that represents `license` entry in `quilt.mod.json` --- src/loaders/quilt/quilt-license.ts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/loaders/quilt/quilt-license.ts diff --git a/src/loaders/quilt/quilt-license.ts b/src/loaders/quilt/quilt-license.ts new file mode 100644 index 0000000..79e7ffd --- /dev/null +++ b/src/loaders/quilt/quilt-license.ts @@ -0,0 +1,26 @@ +/** + * Represents a license for a Quilt mod project. + */ +export interface QuiltLicense { + /** + * The SPDX identifier string for the license. + * + * See https://spdx.org/licenses/ for more information. + */ + id: string; + + /** + * The name of the license. + */ + name: string; + + /** + * The URL where the license text can be found. + */ + url: string; + + /** + * A description of the license. + */ + description?: string; +}