Skip to content

Commit 9021496

Browse files
committed
fix: Nuxt Content v3.7 compatibility
1 parent b4d2f81 commit 9021496

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/content.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import type { Collection } from '@nuxt/content'
2-
import type { ZodRawShape } from 'zod'
32
import { asRobotsCollection } from '@nuxtjs/robots/content'
43
import { asSitemapCollection } from '@nuxtjs/sitemap/content'
54
import { asOgImageCollection } from 'nuxt-og-image/content'
65
import { asSchemaOrgCollection } from 'nuxt-schema-org/content'
76

8-
export function asSeoCollection<T extends ZodRawShape>(collection: Collection<T>): Collection<T> {
7+
export function asSeoCollection<T>(collection: Collection<T>): Collection<T> {
98
// run collection through fns
109
const fns = [asOgImageCollection, asSchemaOrgCollection, asRobotsCollection, asSitemapCollection]
1110
return fns.reduce((collection, fn) => fn(collection), collection)

0 commit comments

Comments
 (0)