import { IndexDef } from '../../types/IndexDef' import { Item } from '../../types/Item' import { Dictionary } from '../../types/Dictionary' import Collection from '../collection' import { create_index } from './create_index' export function build_indexes( collection: Collection, indexList: Dictionary>, ): void { for (const key in indexList) { create_index(collection, key, indexList[key]) } }