Fix CurseForge apiVersion type from number to string
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user