From e01ab659978bf0e31ca007dece6a917e22a94202 Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Tue, 28 Feb 2023 12:22:41 +0000 Subject: [PATCH] Made an interface that represents contact info in `fabric.mod.json` --- .../fabric/fabric-contact-information.ts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/loaders/fabric/fabric-contact-information.ts diff --git a/src/loaders/fabric/fabric-contact-information.ts b/src/loaders/fabric/fabric-contact-information.ts new file mode 100644 index 0000000..1778a98 --- /dev/null +++ b/src/loaders/fabric/fabric-contact-information.ts @@ -0,0 +1,44 @@ +/** + * Represents the contact information for a Fabric mod project. + */ +export interface FabricContactInformation { + /** + * Contact email pertaining to the mod. + * + * Must be a valid email address. + */ + email?: string; + + /** + * IRC channel pertaining to the mod. + * + * Must be of a valid URL format. + */ + irc?: string; + + /** + * Project or user homepage. + * + * Must be a valid HTTP/HTTPS address. + */ + homepage?: string; + + /** + * Project issue tracker. + * + * Must be a valid HTTP/HTTPS address. + */ + issues?: string; + + /** + * Project source code repository. + * + * Must be a valid URL. + */ + sources?: string; + + /** + * Additional, non-standard keys for the contact information. + */ + [key: string]: string | undefined; +}