Skip to content

Commit

Permalink
fix ts
Browse files Browse the repository at this point in the history
  • Loading branch information
cojocaru-david authored Sep 6, 2024
1 parent 98861e7 commit 63536b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { defineCollection, z } from "astro:content";
import { defineCollection, z, collection } from 'astro:content';

Check failure on line 1 in src/content/config.ts

View workflow job for this annotation

GitHub Actions / build

'collection' is defined but never used

const blogCollection = defineCollection({

Check failure on line 3 in src/content/config.ts

View workflow job for this annotation

GitHub Actions / build

Unsafe assignment of an `any` value

Check failure on line 3 in src/content/config.ts

View workflow job for this annotation

GitHub Actions / build

Unsafe call of an `any` typed value
type: 'content',
schema: ({ image }) =>
schema: ({ image }: { image: () => z.ZodType<any> }) =>

Check failure on line 5 in src/content/config.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type
z.object({

Check failure on line 6 in src/content/config.ts

View workflow job for this annotation

GitHub Actions / build

Unsafe return of an `any` typed value

Check failure on line 6 in src/content/config.ts

View workflow job for this annotation

GitHub Actions / build

Unsafe member access .object on an `any` value

Check failure on line 6 in src/content/config.ts

View workflow job for this annotation

GitHub Actions / build

Unsafe call of an `any` typed value
title: z.string().max(80).min(10),

Check failure on line 7 in src/content/config.ts

View workflow job for this annotation

GitHub Actions / build

Unsafe assignment of an `any` value

Check failure on line 7 in src/content/config.ts

View workflow job for this annotation

GitHub Actions / build

Unsafe member access .min on an `any` value

Check failure on line 7 in src/content/config.ts

View workflow job for this annotation

GitHub Actions / build

Unsafe call of an `any` typed value
hero: image(),
Expand Down

0 comments on commit 63536b0

Please sign in to comment.