import { SimpleChange as NgSimpleChanges } from '@angular/core';

// https://github.com/angular/angular/issues/17560#issuecomment-624161007

type SimpleChange<T> = Omit<NgSimpleChanges, 'previousValue' | 'currentValue'> & {
  previousValue: T;
  currentValue: T;
};

type SimpleChanges<T> = {
  [K in keyof T]: SimpleChange<T[K]>;
};

export { SimpleChange, SimpleChanges };
