Function: fileToDocument()
Call Signature
fileToDocument(
file
):Document
Defined in: packages/cspell-lib/src/lib/Document/resolveDocument.ts:11
Parameters
file
string
Returns
Call Signature
fileToDocument(
file
,text
,languageId
?,locale
?):DocumentWithText
Defined in: packages/cspell-lib/src/lib/Document/resolveDocument.ts:12
Parameters
file
string
text
string
languageId?
string
locale?
string
Returns
DocumentWithText
Call Signature
fileToDocument(
file
,text
?,languageId
?,locale
?):Document
|DocumentWithText
Defined in: packages/cspell-lib/src/lib/Document/resolveDocument.ts:13
Parameters
file
string
text?
string
languageId?
string
locale?
string
Returns
Document
| DocumentWithText