Skip to content

TypeScript API / @laikacms/astro/loader / CollectionOverride

Interface: CollectionOverride ​

Per-collection overrides, keyed by collection name.

Properties ​

entry? ​

ts
optional entry?: EntryOptions;

render? ​

ts
optional render?: RenderOptions;

schema? ​

ts
optional schema?: unknown;

Replace the derived schema. Pass your own Zod schema when the catalog's fields do not capture a constraint you care about.


select? ​

ts
optional select?: DocumentSelectOptions;

sync? ​

ts
optional sync?: SyncOptions;

Released under the MIT License.