UNPKG

differify-js

Version:

Differify allows you to get the diff between two entities (objects diff, arrays diff, date diff, functions diff, number diff, etc) very easily, quickly and in a friendly way.

9 lines (8 loc) 422 B
/*! * Copyright(c) 2020 Fabian Roberto Orue <fabianorue@gmail.com> * BSD Licensed */ import { deepPropDiff, propDiff } from './types/diff'; import PROPERTY_STATUS from './enums/property-status'; export declare function buildDiff(original: any, current: any, status: PROPERTY_STATUS, changes?: number): propDiff; export declare function buildDeepDiff(data: any, status: PROPERTY_STATUS, changes?: number): deepPropDiff;