SimpleChanges
Type Alias
stable
A hashtable of changes represented by SimpleChange objects stored at the declared property name they belong to on a Directive or Component. This is the type passed to the ngOnChanges hook. Pass the current class or this as the first generic argument for stronger type checking (e.g. SimpleChanges<YourComponent>).
API
type SimpleChanges<T = unknown> = T extends object ? { [Key in keyof T]?: SimpleChange< T[Key] extends {[ɵINPUT_SIGNAL_BRAND_READ_TYPE]: infer V} ? V : T[Key] >; } : { [propName: string]: SimpleChange; // Backwards-compatible signature. } Jump to details