Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export async function createSpellingDictionaryTrie(
data: IterableLike,
name: string,
source: string,
options?: SpellingDictionaryOptions
): Promise {
const trieNode = importTrie(data);
const trie = new Trie(trieNode);
return new SpellingDictionaryFromTrie(trie, name, options, source);
}