Fix CurseForge apiVersion type from number to string

This commit is contained in:
CPTProgrammer
2026-07-10 13:04:20 +08:00
parent 58d72d06fe
commit 9bc693e3a1
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -22,8 +22,8 @@ export const GameVersionSchema = z.object({
name: z.string(),
/** 版本标识,如 "1-21-5" */
slug: z.string(),
/** API 版本号,无则为 null */
apiVersion: z.number().int().nullable(),
/** API 版本号,无则为 null 或空字符串 */
apiVersion: z.string().nullable(),
});
export type GameVersion = z.infer<typeof GameVersionSchema>;
// endregion