Namespace: JSONDiff
A simple scorer that compares JSON objects, using a customizable comparison method for strings (defaults to Levenshtein) and numbers (defaults to NumericDiff).
Functions
partial
▸ partial<T
>(args
): Scorer
<any
, Omit
<{ numberScorer?
: Scorer
<number
, {}> ; stringScorer?
: Scorer
<string
, {}> }, T
> & Partial
<Pick
<{ numberScorer?
: Scorer
<number
, {}> ; stringScorer?
: Scorer
<string
, {}> }, T
>>>
Type parameters
Name | Type |
---|---|
T | extends "stringScorer" | "numberScorer" |
Parameters
Name | Type |
---|---|
args | { [K in "stringScorer" | "numberScorer"]: Object[K] } |
Returns
Scorer
<any
, Omit
<{ numberScorer?
: Scorer
<number
, {}> ; stringScorer?
: Scorer
<string
, {}> }, T
> & Partial
<Pick
<{ numberScorer?
: Scorer
<number
, {}> ; stringScorer?
: Scorer
<string
, {}> }, T
>>>