Skip to main content

Function: spellCheckDocument()

spellCheckDocument(document, options, settingsOrConfigFile): Promise<SpellCheckFileResult>

Defined in: packages/cspell-lib/src/lib/spellCheckFile.ts:117

Spell Check a Document.

Parameters​

document​

Document | DocumentWithText

document to be checked. If document.text is undefined the file will be loaded

options​

SpellCheckFileOptions

options to control checking

settingsOrConfigFile​

CSpellSettings | ICSpellConfigFile

default settings to use.

Returns​

Promise<SpellCheckFileResult>