We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d58519f commit fc07b8eCopy full SHA for fc07b8e
3 files changed
.gitignore
@@ -1,2 +1,3 @@
1
node_modules
2
dist
3
+.astro
src/content/config.ts
@@ -0,0 +1,15 @@
+import { defineCollection, z } from "astro:content";
+
+export const collections = {
4
+ notes: defineCollection({
5
+ type: "content",
6
+ schema: z
7
+ .object({
8
+ title: z.string(),
9
+ dateCreated: z.date(),
10
+ dateUpdated: z.date()
11
+ })
12
+ .required()
13
+ .strict()
14
15
+};
src/env.d.ts
@@ -1 +1,2 @@
+/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client-image" />
0 commit comments