mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-26 23:49:51 +00:00
MDX: add default types for collection without schema
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'fumadocs-mdx': patch
|
||||
---
|
||||
|
||||
add default types for collection without schema
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user