import { SimpleChange } from '@angular/core'; /** * This interface extends `SimpleChange` for type checking * in `ngOnChanges` method * * @template T The type of component */ export interface ComponentChange extends SimpleChange { /** * The previous value for component property */ previousValue: T[P]; /** * The current value for component property */ currentValue: T[P]; } /** * This type describes the keys of component to be checked on compilation * to prevent using unexisting properties in `ngOnChanges` method */ export declare type ComponentChanges = { [P in keyof T]: ComponentChange; };