Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function generateIndex(AdminDefinition, plugins, intl) {
const idx = new FlexSearch();
addToIndex(adminDefinitionsToUrlsAndTexts(AdminDefinition, intl), idx);
addToIndex(getPluginEntries(plugins), idx);
return idx;
}