Skip to content

DiffOptions

OptionTypeDefault
inline'none' | 'word' | 'character''word'
whitespace'exact' | 'trailing' | 'surrounding' | 'amount' | 'all''exact'
ignoreCasebooleanfalse
inlineThresholdnumber0.3
ignorereadonly RegExp[][]
maxCostnumber5000

DIFFINE_DEFAULTS is the same table as a value.

OptionTypeDefault
inlineDiffInlineModeDiffInlineMode.word
whitespaceDiffWhitespaceDiffWhitespace.exact
ignoreCaseboolfalse
inlineThresholddouble0.3
ignoreList<RegExp><RegExp>[]
maxCostint5000

DiffInlineMode is none, word or character; DiffWhitespace is exact, trailing, surrounding, amount or all. kDiffineDefaults is the same table as a value, and copyWith is how one option is changed without writing the rest.

Released under the MIT License