import { KeyValueChangeRecord , SimpleChange , Type } from '@angular/core' ; export type KeyValueChangeRecordAny = KeyValueChangeRecord < any , any > ; export function createNewChange ( val ) { return new SimpleChange ( undefined , val , true ) ; } export function createChange ( val , prevVal ) { return new SimpleChange ( prevVal , val , false ) ; } export function noop ( ) { } export function getCtorParamTypes ( ctor , reflect ) { return reflect . getMetadata ( 'design:paramtypes' , ctor ) ; } /**
 * Extract type arguments from Angular Directive/Component
 */ export function extractNgParamTypes ( type ) { return ( type as any ) ?. ctorParameters ?. ( ) ?. map ( ( param ) => param . type ) ; }