Make mod link fields nullable and optional

This commit is contained in:
CPTProgrammer 2026-07-14 17:10:11 +08:00
parent 3b077d75f4
commit c265b2405b
No known key found for this signature in database

View File

@ -24,13 +24,13 @@ export type ModStatus = z.infer<typeof ModStatusSchema>;
// region ModLinks — 项目相关链接 // region ModLinks — 项目相关链接
export const ModLinksSchema = z.object({ export const ModLinksSchema = z.object({
/** 官网链接 */ /** 官网链接 */
websiteUrl: z.string(), websiteUrl: z.string().nullable().optional(),
/** Wiki 链接 */ /** Wiki 链接 */
wikiUrl: z.string(), wikiUrl: z.string().nullable().optional(),
/** Issue 追踪链接 */ /** Issue 追踪链接 */
issuesUrl: z.string(), issuesUrl: z.string().nullable().optional(),
/** 源码仓库链接 */ /** 源码仓库链接 */
sourceUrl: z.string(), sourceUrl: z.string().nullable().optional(),
}); });
export type ModLinks = z.infer<typeof ModLinksSchema>; export type ModLinks = z.infer<typeof ModLinksSchema>;
// endregion // endregion