cspell
Version:
A Spelling Checker for Code!
18 lines (17 loc) • 891 B
TypeScript
import { Sequence } from 'gensequence';
import { CSpellUserSettings } from './CSpellSettingsDef';
export declare type CSpellUserSettingsKeys = keyof CSpellUserSettings;
export declare function getInDocumentSettings(text: string): CSpellUserSettings;
export declare function getIgnoreWordsFromDocument(text: string): string[];
export declare function getIgnoreRegExpFromDocument(text: string): (string | RegExp)[];
/**
* These internal functions are used exposed for unit testing.
*/
export declare const internal: {
getPossibleInDocSettings: (text: string) => Sequence<RegExpExecArray>;
getWordsFromDocument: (text: string) => string[];
parseWords: (match: string) => CSpellUserSettings;
parseCompoundWords: (match: string) => CSpellUserSettings;
parseIgnoreRegExp: (match: string) => CSpellUserSettings;
parseIgnoreWords: (match: string) => CSpellUserSettings;
};