Make mod link fields nullable and optional
This commit is contained in:
parent
3b077d75f4
commit
c265b2405b
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user