Removed unnecessary types and fixed some bugs
This commit is contained in:
parent
441d8a42a3
commit
62e3869ce9
8 changed files with 16 additions and 46 deletions
src/content
|
@ -5,7 +5,7 @@ const taInfo = defineCollection({
|
|||
schema: z.object({
|
||||
info: z.object({
|
||||
title: z.string(),
|
||||
questReleaseDate: z.string(),
|
||||
questReleaseDate: z.string().transform((str) => new Date(str)),
|
||||
shortdescription: z.string(),
|
||||
description: z.string(),
|
||||
fightNumber: z.number().default(1),
|
||||
|
@ -14,7 +14,7 @@ const taInfo = defineCollection({
|
|||
z.object({
|
||||
title: z.string(),
|
||||
link: z.string().url(),
|
||||
date: z.string(),
|
||||
date: z.string().transform((str) => new Date(str)),
|
||||
servant: z.string(),
|
||||
turns: z.string(),
|
||||
runner: z.string(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue