File tree Expand file tree Collapse file tree 2 files changed +6
-16
lines changed Expand file tree Collapse file tree 2 files changed +6
-16
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' astro ' : patch
3
+ ---
4
+
5
+ Loosen content layer schema types
Original file line number Diff line number Diff line change @@ -45,22 +45,7 @@ declare module 'astro:content' {
45
45
has : ( key : string ) => boolean ;
46
46
}
47
47
48
- type BaseAtomicSchema = import ( 'astro/zod' ) . AnyZodObject ;
49
-
50
- type BaseCompositeSchema =
51
- | import ( 'astro/zod' ) . ZodUnion < [ BaseAtomicSchema , ...BaseAtomicSchema [ ] ] >
52
- | import ( 'astro/zod' ) . ZodDiscriminatedUnion < string , BaseAtomicSchema [ ] >
53
- // If we have a union of unions, give up on trying to type-check it all. You're on your own.
54
- | import ( 'astro/zod' ) . ZodUnion < [ import ( 'astro/zod' ) . ZodUnion < z . any > , ...z . any [ ] ] > ;
55
-
56
- type BaseSchemaWithoutEffects =
57
- | BaseAtomicSchema
58
- | BaseCompositeSchema
59
- | import ( 'astro/zod' ) . ZodIntersection < BaseAtomicSchema , BaseAtomicSchema | BaseCompositeSchema > ;
60
-
61
- export type BaseSchema =
62
- | BaseSchemaWithoutEffects
63
- | import ( 'astro/zod' ) . ZodEffects < BaseSchemaWithoutEffects > ;
48
+ export type BaseSchema = import ( 'astro/zod' ) . ZodType
64
49
65
50
export type SchemaContext = { image : ImageFunction } ;
66
51
You can’t perform that action at this time.
0 commit comments