File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed
Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -25,3 +25,6 @@ pnpm-debug.log*
2525
2626# VSCode Workspace
2727astro-basic-template.code-workspace
28+
29+ # Astro directories
30+ .astro
Original file line number Diff line number Diff line change 1+ import { defineCollection , z } from 'astro:content'
2+
3+ const leetcodeSolutionCollection = defineCollection ( {
4+ schema : z . object ( {
5+ title : z . string ( ) ,
6+ keywords : z . array ( z . string ( ) ) ,
7+ author : z . string ( ) ,
8+ pubDate : z . string ( ) ,
9+ difficulty : z . string ( ) ,
10+ tags : z . array ( z . string ( ) ) ,
11+ } ) ,
12+ } )
13+
14+ export const collections = {
15+ 'leetcode-solutions' : leetcodeSolutionCollection ,
16+ }
Original file line number Diff line number Diff line change 1+ // eslint-disable-next-line @typescript-eslint/triple-slash-reference
2+ /// <reference path="../.astro/types.d.ts" />
13/// <reference types="astro/client" />
You can’t perform that action at this time.
0 commit comments