pub fn write_index( out_dir: &Path, collections: &[Collection], format: &str, config_path: Option<&Path>, ) -> Result<()>
Pick the right .d.ts mode and write index.js + index.d.ts.
.d.ts
index.js
index.d.ts