Expand description
Top-level entry emission: index.js + index.d.ts that re-export
every collection’s <name>.json.
Two .d.ts modes:
- Velite-style (config is
.ts/.js/.mjs): re-import the user’s config, infer record types viatypeof import(..)['collections']. - Self-contained (TOML / no config): per-collection TS interface
from
schema = { ... }, else the genericDocRecordshape.
Functions§
- write_
index - Pick the right
.d.tsmode and writeindex.js+index.d.ts.