Type alias CompareChangeSet<TKey>

CompareChangeSet<TKey>: {
    added: Record<TKey, any>;
    changed: Record<TKey, any>;
    children: Record<TKey, CompareChangeSet<any>>;
    hasChanged: boolean;
    isArray: boolean;
    removed: TKey[];
    summary: ChangeRecord<TKey>[];
}

Result of compareData

Type Parameters

  • TKey extends string | number

Type declaration

  • added: Record<TKey, any>

    Fields that have been added

  • changed: Record<TKey, any>

    Values that have changed

  • children: Record<TKey, CompareChangeSet<any>>

    Results for child objects

  • hasChanged: boolean

    True if there are any changes

  • isArray: boolean
  • removed: TKey[]

    Fields that have been removed

  • summary: ChangeRecord<TKey>[]

    Summary of changes