cspell-lib
Version:
A library of useful functions used across various cspell tools.
14 lines • 639 B
TypeScript
export interface WordDictionary {
[index: string]: boolean;
}
export type WordSet = Set<string>;
/**
* Reads words from a file. It will not throw and error.
* @param filename the file to read
*/
export declare function loadWordsNoError(filename: string): Promise<IterableIterator<string>>;
export declare function splitLine(line: string): string[];
export declare function splitCodeWords(words: string[]): string[];
export declare function splitLineIntoCodeWords(line: string): IterableIterator<string>;
export declare function splitLineIntoWords(line: string): IterableIterator<string>;
//# sourceMappingURL=wordListHelper.d.ts.map