Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
JsDiff
Module JsDiff
Index
Interfaces
IBestPath
IDiffResult
Classes
Diff
Functions
applyPatch
convertChangesToDMP
convertChangesToXML
createPatch
diffChars
diffCss
diffLines
diffWords
diffWordsWithSpace
Functions
applyPatch
(
oldStr
:
string
, uniDiff
:
string
)
:
string
Parameters
oldStr:
string
uniDiff:
string
Returns
string
convertChangesToDMP
(
changes
:
IDiffResult
[]
)
:
Array<{ 0: number; 1: string; }>
Parameters
changes:
IDiffResult
[]
Returns
Array<{ 0: number; 1: string; }>
convertChangesToXML
(
changes
:
IDiffResult
[]
)
:
string
Parameters
changes:
IDiffResult
[]
Returns
string
createPatch
(
fileName
:
string
, oldStr
:
string
, newStr
:
string
, oldHeader
:
string
, newHeader
:
string
)
:
string
Parameters
fileName:
string
oldStr:
string
newStr:
string
oldHeader:
string
newHeader:
string
Returns
string
diffChars
(
oldStr
:
string
, newStr
:
string
)
:
IDiffResult
[]
Parameters
oldStr:
string
newStr:
string
Returns
IDiffResult
[]
diffCss
(
oldStr
:
string
, newStr
:
string
)
:
IDiffResult
[]
Parameters
oldStr:
string
newStr:
string
Returns
IDiffResult
[]
diffLines
(
oldStr
:
string
, newStr
:
string
)
:
IDiffResult
[]
Parameters
oldStr:
string
newStr:
string
Returns
IDiffResult
[]
diffWords
(
oldStr
:
string
, newStr
:
string
)
:
IDiffResult
[]
Parameters
oldStr:
string
newStr:
string
Returns
IDiffResult
[]
diffWordsWithSpace
(
oldStr
:
string
, newStr
:
string
)
:
IDiffResult
[]
Parameters
oldStr:
string
newStr:
string
Returns
IDiffResult
[]
Globals
JsDiff
diff
IBestPath
IDiffResult
Diff
applyPatch
convertChangesToDMP
convertChangesToXML
createPatch
diffChars
diffCss
diffLines
diffWords
diffWordsWithSpace