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

NameType
Textends "stringScorer" | "numberScorer"

Parameters

NameType
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>>>

Defined in

autoevals/js/partial.ts:5