MDX: add default types for collection without schema

This commit is contained in:
Fuma Nama
2025-04-04 15:52:25 +08:00
parent 1057957587
commit 6c5e47a3e8
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'fumadocs-mdx': patch
---
add default types for collection without schema
+1 -1
View File
@@ -59,7 +59,7 @@ export interface DocsCollection<
export function defineCollections<
T extends 'doc' | 'meta',
Schema extends StandardSchemaV1 = StandardSchemaV1,
Schema extends StandardSchemaV1 = StandardSchemaV1<unknown, any>,
Async extends boolean = false,
>(
options: { type: T } & (T extends 'doc'