From 2185aa2620ff17861d3580be92d7014e6680aaf2 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 9 Apr 2023 21:11:36 +0100 Subject: [PATCH] style: format --- src/content/config.ts | 41 ++++++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/src/content/config.ts b/src/content/config.ts index e3df23e8..11b9b4ef 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -1,4 +1,4 @@ -import { defineCollection, z } from 'astro:content'; +import { defineCollection, z } from "astro:content"; const blogCollection = defineCollection({ schema: z.object({ @@ -23,27 +23,34 @@ const dailyEmailCollection = defineCollection({ const talkCollection = defineCollection({ schema: z.object({ description: z.string(), - events: z.array(z.object({ - date: z.string(), - location: z.string().optional(), - name: z.string(), - online: z.boolean().optional(), - })), - speakerdeck: z.object({ - id: z.string(), - ratio: z.string(), - url: z.string(), - }).optional(), + events: z.array( + z.object({ + date: z.string(), + location: z.string().optional(), + name: z.string(), + online: z.boolean().optional(), + }) + ), + speakerdeck: z + .object({ + id: z.string(), + ratio: z.string(), + url: z.string(), + }) + .optional(), title: z.string(), - video: z.object({ - id: z.string(), - type: z.enum(['vimeo', 'youtube']), - }).or(z.null()).optional(), + video: z + .object({ + id: z.string(), + type: z.enum(["vimeo", "youtube"]), + }) + .or(z.null()) + .optional(), }), }); export const collections = { - 'daily-email': dailyEmailCollection, + "daily-email": dailyEmailCollection, blog: blogCollection, talk: talkCollection, };