import { type } from "arktype"; import { nodeSchema } from "../deps/strapi.tsx"; import { strapiLoader } from "../deps/strapi.tsx"; export const releaseStrapiSchema = type({ "version": "string", "date": "string.date.parse", "notes?": nodeSchema.array().or("null"), "files": strapiLoader.resolvedFileAttributeSchema, }); export const releaseSchema = releaseStrapiSchema.merge({ type: "'release'", title: "string", }); export type Release = typeof releaseSchema.infer;